Skip to content

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

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.

4 participants