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

Support for enforcing embedded schema #505

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

jprakash-db
Copy link
Contributor

Description

As a part of query optimization Databricks returns cached results when the underlying query is the same. This creates issue when the same query is used but with a different alias, in this case the result is the same but the metadata is different. But Databricks returns the same metadata as a part of query optimisation

Added

Added option to enforce schema to make sure the metadata is in updated state

@@ -737,6 +737,7 @@ def execute(
self,
operation: str,
parameters: Optional[TParameterCollection] = None,
enforceEmbeddedSchema=False,
Copy link
Collaborator

@jackyhu-db jackyhu-db Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you rename it to enforce_embedded_schema_correctness to be consistent with the meaning of the thrift API. "enforce schema" is different with "enforce schema with correctness". And please use snake case which is python style.

@jprakash-db jprakash-db merged commit 72b0044 into release/v3.7.3 Feb 19, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants