Skip to main content

User Guide

Relative Path Examples

Relative paths take a wildcard expression that allows multiple files to be located in folders under the Input Root Folder. 

Consider the same directory structure as above. All these examples assume a root input folder of /data/.

Example

Description

2016-01/*.avro

Will match all Avro files in 2016-01/.

*.avro

Does not match any files, because there are no Avro files directly underneath the input root folder, and matching is not recursive through directories.

*/*01.avro

Wildcards can be placed in the filename part. Therefore, this example will match /data/2016-01/20160101.avro and /data/2016-02/20160201.avro (and so on) but not /data/2016-01/20160102.avro

/2016-01/20160101.avro

It is possible to omit wildcards completely. Therefore, this example refers to a single input partition file: /2016-01/20160101.avro.

To use wildcarded relative paths:

  • When creating or Editing a Job, select the Data Locations tab (if present). Otherwise, the data locations will be displayed in the window underneath the Input Root Folder field.

  • Enter a relative path with wildcards in the Relative Path field.