Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Describe pathGlobFilter
  • Loading branch information
MaxGekk committed Jan 13, 2020
commit 91a1deef2dbe5cecdf4592570c1880f663bb629c
6 changes: 6 additions & 0 deletions docs/sql-data-sources-avro.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ Data source options of Avro can be set via:
<td>The option controls ignoring of files without <code>.avro</code> extensions in read.<br> If the option is enabled, all files (with and without <code>.avro</code> extension) are loaded.<br> The option has been already deprecated, and it will be removed in the future releases. Please use the general data source option <code>pathGlobFilter</code> for filtering file names.</td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work.
Could you also create a doc entry for the option pathGlobFilter and link to it here in this PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

been already deprecated -> been deprecated.

<td>read</td>
</tr>
<tr>
<td><code>pathGlobFilter</code></td>
<td>""</td>
<td>The option specifies an optional glob pattern to only include files with paths matching the pattern. The syntax follows <code>org.apache.hadoop.fs.GlobFilter</code>. It does not change the behavior of partition discovery.</td>
<td>read</td>
</tr>
<tr>
<td><code>compression</code></td>
<td>snappy</td>
Expand Down