Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FSTORE-8][3.0] add query default argument in snowflake #807

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Changes from all commits
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
4 changes: 3 additions & 1 deletion python/hsfs/storage_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def spark_options(self):

def read(
self,
query: str,
query: str = None,
data_format: str = None,
options: dict = {},
path: str = None,
Expand All @@ -696,6 +696,8 @@ def read(
)
if query:
options["query"] = query
# if table also specified we override to use query
options.pop("dbtable", None)

return engine.get_instance().read(self, self.SNOWFLAKE_FORMAT, options, None)

Expand Down