Skip to content

Reject a DataSourceConfig with no uri or format in DataFusionEngine - #1

Closed
pankajastro wants to merge 1 commit into
fix-datafusion-datasource-afl-214from
datafusion-register-datasource-guard-afl-214
Closed

pankajastro wants to merge 1 commit into
fix-datafusion-datasource-afl-214from
datafusion-register-datasource-guard-afl-214

Conversation

@pankajastro

Copy link
Copy Markdown
Owner

Follow-up to apache#73273, per review feedback.

LLMSQLOperator, DataFusionToolset, and AnalyticsOperator hand DataFusionEngine.register_datasource whatever DataSourceConfig the caller supplies, unlike LLMSchemaCompareOperator which checks the connection kind first. A plain-database-table config reaching any of them failed deep inside credential resolution with a confusing Unknown connection type error instead of a clear message. register_datasource now rejects that shape immediately.

Base branch is fix-datafusion-datasource-afl-214 (apache#73273) since this depends on the plain-database-table shape it introduces. This will be re-opened against apache/airflow:main once that merges.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Sonnet 5)

Generated-by: Claude Code (Sonnet 5) following the guidelines

LLMSQLOperator, DataFusionToolset, and AnalyticsOperator hand
DataFusionEngine.register_datasource whatever DataSourceConfig the
caller supplies, unlike LLMSchemaCompareOperator which checks the
connection kind first. A plain-database-table config reaching any of
them failed deep inside credential resolution with a confusing
"Unknown connection type" error instead of a clear message.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@pankajastro

Copy link
Copy Markdown
Owner Author

Reopening directly against apache/airflow:main instead of stacking on the fork branch.

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.

1 participant