Skip to content

feat: add configurable DML row counts and skip disabled test_get_objects_ instead of strict xfails - #271

Open
Mandukhai-Alimaa wants to merge 2 commits into
adbc-drivers:mainfrom
Mandukhai-Alimaa:feat/dml-statement-rows-affected-flag
Open

feat: add configurable DML row counts and skip disabled test_get_objects_ instead of strict xfails#271
Mandukhai-Alimaa wants to merge 2 commits into
adbc-drivers:mainfrom
Mandukhai-Alimaa:feat/dml-statement-rows-affected-flag

Conversation

@Mandukhai-Alimaa

Copy link
Copy Markdown
Contributor

Some backends, such as Databend, report 0 rows affected for DML statements. Add a driver feature flag so the validation suite can expect this behavior.

Skipped test_get_objects_ instead of marking strict xfail when disabled. In the MySQL driver, unfiltered GetObjects uses a plain query and may succeed on Databend, while filtered GetObjects uses bound parameters and falls back to prepared statements, which Databend does not support. With strict xfail, unfiltered cases can pass and turn into misleading XPASS failures even though get_objects is disabled for that backend. Skipping is clearer.

statement_prepare: bool = Field(default=False)
statement_rows_affected: bool = Field(default=False)
# Some backends report zero for every ordinary DML statement (ex: Databend)
statement_rows_affected_dml_returns_zero: bool = Field(default=False)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit, but maybe this could be a 'quirk' (see below)?

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.

2 participants