[coverage] Conformance findings: STATEMENT-025
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 64/100
Piste de recherche
Start with TestQueryTimeoutOptionValueValidation in the coverage PR under tests, then trace the DSN timeout and dbsql.WithTimeout paths for both the Thrift and SEA/kernel backends. Compare their handling of negative values with the shared assertion contract and the reference PR. Done means invalid negative values are rejected with an error naming timeout while valid zero, positive, and maximum values retain the expected behavior.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-go. 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-go) is fixed, then flips green as a tripwire.
Findings
- STATEMENT-025 [thrift]: Negative query-timeout is silently accepted: DSN
timeout=-1and dbsql.WithTimeout(-1s) both configure fine and the query runs with the invalid deadline, while non-numeric and out-of-range values ARE rejected with the option named — the value is parsed but not range-validated (PECO-3011).- failing test:
TestQueryTimeoutOptionValueValidation(see the coverage PR diff undertests/)
- failing test:
- STATEMENT-025 [sea]: Same negative-value gap on the SEA/kernel leg, and sharper: the kernel backend REFUSES any non-zero dbsql.WithTimeout up front ("not supported by the kernel backend") yet still ACCEPTS WithTimeout(-1s) and DSN timeout=-1 and runs the query — positive refused, negative waved through (PECO-3011).
- failing test:
TestQueryTimeoutOptionValueValidation(see the coverage PR diff undertests/)
- failing test:
- STATEMENT-025: Negative query-timeout values are silently accepted instead of rejected:
timeout=-1in the DSN and dbsql.WithTimeout(-1s) both configure successfully and a query then runs with the invalid deadline (behaving as "unlimited"), while non-numeric and out-of-range values ARE correctly rejected with a message naming the option — proving the value is parsed but not range-validated (PECO-3011). Affects both the Thrift and SEA/kernel backends; notably the kernel backend refuses any non-zero WithTimeout up front yet still accepts a negative one.
Reproduce & Expected
STATEMENT-025 — Validates that an INVALID value for the query-timeout option is REJECTED with an error at configuration time, on every surface that accepts the option, instead of being silently accepted and coerced…
Reproduce:
SELECT 1
SELECT 1
Expected (per the shared spec):
- completes without an exception
- result has exactly 1 row(s)
- completes without an exception
- result has exactly 1 row(s)
- completes without an exception
- completes without an exception
- completes without an exception
- full assertion contract:
result:
- label: property_non_numeric
error:
contains:
- timeout
- label: property_negative
error:
contains:
- timeout
- label: property_unrepresentable
error:
contains:
- timeout
- label: set_option_non_numeric
error:
contains:
- timeout
- label: set_option_negative
error:
contains:
- timeout
- label: set_option_unrepresentable
error:
contains:
- timeout
- label: property_zero_unlimited
no_exception: true
- label: property_zero_unlimited
row_count: 1
- label: property_max_positive
no_exception: true
- label: property_max_positive
row_count: 1
- label: set_option_valid_zero
no_exception: true
- label: set_option_valid_one
no_exception: true
- label: set_option_valid_max
no_exception: true
Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: https://github.com/adbc-drivers/databricks/pull/689 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-go; the reference PR is for cross-referencing the intended behavior, NOT a change to this repo.
- Coverage PR carrying the reproducing xfail test(s): https://github.com/databricks/databricks-driver-test/pull/1692
- Langage dominant
- Go
- Étoiles
- 53
- Forks
- 68
- Merge moyen
- 2 j 16 min
- PR mergées (30 j)
- 15
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de databricks/databricks-sql-go
-
bug engineer-bot
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
databricks/databricks-sql-go#507 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
databricks/databricks-sql-go#494 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 49/100
databricks/databricks-sql-go#517 ·
Les mainteneurs répondent en général sous 1 jour
-
TIMESTAMP_NTZ is scanned as a zoned TIMESTAMPPeut-être pris @peco-engineer-bot l’a pris il y a 5 jours. Ouvertebug engineer-bot
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
databricks/databricks-sql-go#506 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
TIME (time64[ns]) type unhandledOuvertebug engineer-bot
Difficulté 3/5 1-2 jours Accessibilité débutants 67/100
databricks/databricks-sql-go#505 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de databricks/databricks-sql-go
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
FootprintAI/Containarium#3182 ·
Les mainteneurs répondent en général sous 1 jour
-
bug from-studio
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
esengine/DeepSeek-Reasonix#14608 ·
Les mainteneurs répondent en général sous 1 jour
-
triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
getarcaneapp/arcane#4590 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Library panel usage dialog uses singular grammarPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertearea/frontend/library-panels automated-triage type/bug type/ux
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour