Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support for enforcing embedded schema#505

Merged
jprakash-db merged 2 commits into
release/v3.7.3databricks/databricks-sql-python:release/v3.7.3from
jprakash-db/enforce-schemadatabricks/databricks-sql-python:jprakash-db/enforce-schemaCopy head branch name to clipboard
Feb 19, 2025
Merged

Support for enforcing embedded schema#505
jprakash-db merged 2 commits into
release/v3.7.3databricks/databricks-sql-python:release/v3.7.3from
jprakash-db/enforce-schemadatabricks/databricks-sql-python:jprakash-db/enforce-schemaCopy head branch name to clipboard

Conversation

@jprakash-db

Copy link
Copy Markdown
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

Comment thread src/databricks/sql/client.py Outdated
self,
operation: str,
parameters: Optional[TParameterCollection] = None,
enforceEmbeddedSchema=False,

@jackyhu-db jackyhu-db Feb 18, 2025

Copy link
Copy Markdown
Collaborator

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.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.