Skip to content

Require common.sql 2.2.0 for common.ai's SQL extras - #73867

Merged
kaxil merged 1 commit into
apache:mainfrom
astronomer:commonai-sql-floor-and-doc-fixes
Sep 28, 2026
Merged

kaxil merged 1 commit into
apache:mainfrom
astronomer:commonai-sql-floor-and-doc-fixes

Conversation

@kaxil

@kaxil kaxil commented Sep 28, 2026

Copy link
Copy Markdown
Member

#73273 changed the LLMSchemaCompareOperator guide and example_llm_schema_compare.py to show a DataSourceConfig with only conn_id and table_name. That form is new in common.sql 2.2.0. On common.sql 2.1.1 it raises ValueError: Unsupported storage type for URI:, so the example Dag fails to import. The sql and common.sql extras still allowed >=1.33.0, which lets a user upgrade common.ai on its own and keep 2.1.1. This raises both floors to >=2.2.0, the common.sql version in the current provider wave (#73658). Only the two extras change; common.ai's required dependencies stay as they are.

Two docs fixes are included:

  • example_classifier_model.py said LLMBranchOperator cannot act on the model's confidence and that no operator puts it on XCom. Both stopped being true with decision_policy and the decision XCom in Add a decision policy so an LLM operator asks a person when the model is unsure #73368.
  • The ClassifierRetryPolicy hints example in retry_policies.rst passed categories={...}, a set literal that raises TypeError when copied. The Snowflake table earlier on the page is now a named SNOWFLAKE_CATEGORIES, and both examples use it.

Needs the allow provider dependency bump label.

The LLMSchemaCompareOperator guide and example now show a DataSourceConfig
holding only conn_id and table_name. That form needs common.sql 2.2.0; on
2.1.1 it raises "Unsupported storage type for URI". Raise the floor of the
sql and common.sql extras to match.

Also fix two docs issues found while testing 0.10.0rc1: comments in the
classifier example Dag that predate decision_policy and the decision XCom,
and a categories={...} placeholder in the retry policy guide that raised
TypeError when copied.
@kaxil
kaxil merged commit 84f7515 into apache:main Sep 28, 2026
96 checks passed
@kaxil
kaxil deleted the commonai-sql-floor-and-doc-fixes branch September 28, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants