Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jdu committed Oct 31, 2024
1 parent eba3ea3 commit 3681811
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integ/test_reduce_describe_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,21 @@

@pytest.fixture(params=param_list, autouse=True, scope="module")
def setup(request, session):
# set eliminate_numeric_sql_value_cast_enabled to True for quoted identifier comparison
is_eliminate_numeric_sql_value_cast_enabled = (
session.eliminate_numeric_sql_value_cast_enabled
)
session.eliminate_numeric_sql_value_cast_enabled = True
is_reduce_describe_query_enabled = session.reduce_describe_query_enabled
session.reduce_describe_query_enabled = request.param
session.create_dataframe([[1, 2], [3, 4]], schema=["a", "b"]).write.save_as_table(
temp_table_name, table_type="temp", mode="overwrite"
)
yield
session.reduce_describe_query_enabled = is_reduce_describe_query_enabled
session.eliminate_numeric_sql_value_cast_enabled = (
is_eliminate_numeric_sql_value_cast_enabled
)


# Create from SQL
Expand Down

0 comments on commit 3681811

Please sign in to comment.