Skip to content

Commit

Permalink
[Datastore] Fix Spark read path in CSVSource (#5307)
Browse files Browse the repository at this point in the history
[ML-5896](https://iguazio.atlassian.net/browse/ML-5896)

Introduced in #5158, first appearing in v1.7.0-rc4.
  • Loading branch information
gtopper committed Mar 20, 2024
1 parent 285a937 commit 530b7cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mlrun/datastore/sources.py
Expand Up @@ -204,11 +204,11 @@ def to_step(self, key_field=None, time_field=None, context=None):
)

def get_spark_options(self):
store, path, url = mlrun.store_manager.get_or_create_store(self.path)
store, path, _ = mlrun.store_manager.get_or_create_store(self.path)
spark_options = store.get_spark_options()
spark_options.update(
{
"path": url,
"path": store.spark_url + path,
"format": "csv",
"header": "true",
"inferSchema": "true",
Expand Down Expand Up @@ -357,7 +357,7 @@ def to_step(
)

def get_spark_options(self):
store, path, url = mlrun.store_manager.get_or_create_store(self.path)
store, path, _ = mlrun.store_manager.get_or_create_store(self.path)
spark_options = store.get_spark_options()
spark_options.update(
{
Expand Down

0 comments on commit 530b7cd

Please sign in to comment.