GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [coverage] Conformance findings: STATEMENT-025,STATEMENT-026 · Issue #949 · databricks/databricks-sql-python Open DescriptionSummarySurfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-python. Each finding is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT (post-fix) behavior and stays red until THIS driver (databricks/databricks-sql-python) is fixed, then flips green as a tripwire. Findings
Reproduce & ExpectedSTATEMENT-025 — Validates the RESULT KIND of write statements: a DML statement exposes its affected-row count and NO fetchable result set, and a DDL statement exposes neither.Reproduce: INSERT INTO {tableName} VALUES (1, 'a'), (2, 'b') UPDATE {tableName} SET name = 'c' WHERE id = 2 DELETE FROM {tableName} WHERE id = 1 DELETE FROM {tableName} WHERE id = -12345 MERGE INTO {tableName} AS t USING (SELECT 2 AS id, 'merged' AS name) AS s ON t.id = s.id WHEN MATCHED THEN UPDATE SET t.name = s.name WHEN NOT MATCHED THEN INSERT (id, name) VALUES (s.id, s.name) WITH src AS (SELECT 3 AS id, 'd' AS name) INSERT INTO {tableName} SELECT id, name FROM src ALTER TABLE {tableName} ADD COLUMN extra STRING TRUNCATE TABLE {tableName} SELECT CAST(7 AS BIGINT) AS num_affected_rows WITH c AS (SELECT CAST(7 AS BIGINT) AS num_affected_rows) SELECT * FROM c TABLE {counterViewName} Expected (per the shared spec):
result: - label: insert no_exception: true - label: insert no_result_set: true - label: insert affected_row_count: 2 - label: update no_exception: true - label: update no_result_set: true - label: update affected_row_count: 1 - label: delete no_exception: true - label: delete no_result_set: true - label: delete affected_row_count: 1 - label: delete_zero_rows no_exception: true - label: delete_zero_rows no_result_set: true - label: delete_zero_rows affected_row_count: 0 - label: merge no_exception: true - label: merge no_result_set: true - label: merge affected_row_count_min: 1 - label: cte_insert no_exception: true - label: cte_insert no_result_set: true - label: cte_insert affected_row_count: 1 - label: ddl_alter no_exception: true - label: ddl_alter no_result_set: true - label: ddl_alter affected_row_count_not_positive: true - label: ddl_truncate no_exception: true - label: ddl_truncate no_result_set: true - label: ddl_truncate affected_row_count_not_positive: true - label: counter_select no_exception: true - label: counter_select row_count: 1 - label: counter_select column_count: 1 - label: counter_select column: index: 0 row: 0 type: Int64 equals: 7 - label: counter_cte no_exception: true - label: counter_cte row_count: 1 - label: counter_cte column: index: 0 row: 0 type: Int64 equals: 7 - label: counter_table no_exception: true - label: counter_table row_count: 1 - label: counter_table column: index: 0 row: 0 type: Int64 equals: 7 STATEMENT-026 — Validates that executing a RESULTLESS statement (DML or DDL) on a statement/handle that previously ran a row-returning query REPLACES the statement's result state rather than leaving the earlier quer…Reproduce: SELECT 1 AS a, 'x' AS b INSERT INTO {tableName} VALUES (1, 'a') SELECT 42 AS only_col ALTER TABLE {tableName} ADD COLUMN extra STRING SELECT 1 AS a, 'x' AS b INSERT INTO {tableName} VALUES (2, 'b') Expected (per the shared spec):
result: - label: baseline_select no_exception: true - label: baseline_select row_count: 1 - label: baseline_select column_count: 2 - label: write_after_select no_exception: true - label: write_after_select no_result_set: true - label: write_after_select column_count: 0 - label: write_after_select affected_row_count: 1 - label: select_after_write no_exception: true - label: select_after_write row_count: 1 - label: select_after_write column_count: 1 - label: select_after_write column: index: 0 name: only_col - label: ddl_after_select no_exception: true - label: ddl_after_select no_result_set: true - label: ddl_after_select column_count: 0 - label: prepared_baseline no_exception: true - label: prepared_baseline metadata_not_null: true - label: prepared_baseline column_count: 2 - label: prepared_switch no_exception: true - label: prepared_switch metadata_is_null: true - label: prepared_switch column_count: 0 - label: prepared_switch_execute no_exception: true - label: prepared_switch_execute no_result_set: true - label: prepared_switch_execute affected_row_count: 1 Context
ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |