cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Documented Autoloader option not supported?

bd
New Contributor III

I have a function which is meant to use the `cloudFiles` source to stream file contents from s3. It is configured like this:

```

stream = (

spark.readStream.format("cloudFiles")

.option("cloudFiles.format", "text")

.option("cloudFiles.schemaLocation", MY_CHECKPOINT_PATH)

.option("wholeText", True)

.option("cloudFiles.fetchParallelism", 😎

.option("cloudFiles.pathGlobFilter", "*/subdir/*")

.load(MY_S3_PATH)

)

```

According to the autoloader docs, this is a valid option, but when I run this in a notebook on DBR 11.3 LTS personal cluster, I get `CloudFilesIllegalArgumentException: Found unknown option keys: cloudFiles.pathglobfilter`

This is on an AWS deployment of databricks. I've also tried running on a 12.2 cluster, with the same result. I've also tried a number of different version of the glob filter pattern itself, to no avail. This is the simplest one (my real use case would need a comma-separated string of options or something like that).

1 ACCEPTED SOLUTION

Accepted Solutions

Lakshay
Databricks Employee
Databricks Employee

Hi @Benjamin Dean​ , The issue is about the option "cloudFiles.pathGlobFilter". You don't need to use the cloudFiles prefix here. You can directly mention "pathGlobFilter" instead

View solution in original post

2 REPLIES 2

Lakshay
Databricks Employee
Databricks Employee

Hi @Benjamin Dean​ , The issue is about the option "cloudFiles.pathGlobFilter". You don't need to use the cloudFiles prefix here. You can directly mention "pathGlobFilter" instead

bd
New Contributor III

thanks, I see how I made that error.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group