Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Use legacy syntax in Calcite by default in PyHDK.
Browse files Browse the repository at this point in the history
Signed-off-by: ienkovich <[email protected]>
  • Loading branch information
ienkovich committed Jun 29, 2023
1 parent d774e85 commit 91b7472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyhdk/_sql.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cdef class Calcite:
def process(self, string sql, **kwargs):
cdef string db_name = kwargs.get("db_name", "test-db")
cdef vector[FilterPushDownInfo] filter_push_down_info = vector[FilterPushDownInfo]()
cdef bool legacy_syntax = kwargs.get("legacy_syntax", False)
cdef bool legacy_syntax = kwargs.get("legacy_syntax", True)
cdef bool is_explain = kwargs.get("is_explain", False)
cdef bool is_view_optimize = kwargs.get("is_view_optimize", False)
return self.calcite.process(db_name, sql, self.schema_provider.get(), self.config.get(), filter_push_down_info, legacy_syntax, is_explain, is_view_optimize)
Expand Down

0 comments on commit 91b7472

Please sign in to comment.