voltrondata / spark-substrait-gateway

Implements a gateway that speaks the SparkConnect protocol and drives a backend using Substrait (over ADBC Flight SQL).
Apache License 2.0
16 stars 9 forks source link

Support paths specified as DataFrameReader options #56

Closed pthatte1-bb closed 4 months ago

pthatte1-bb commented 4 months ago
Supported style:
return spark_session.read.parquet(location_customer, mergeSchema=False)
Unsupported style:
spark_options = {"path": location_customer}
return spark_session.read.options(**spark_options).load()
EpsilonPrime commented 4 months ago

This should be straightforward to add. One thing we should make sure to do is to add some sort of enforcement that the directories are limited to a valid set of locations or restrict them to a subdirectory to prevent arbitrary remote access.