Skip to content

[coverage] Conformance findings: CONNPROP-003 #431

Description

@peco-engineer-bot

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

  • CONNPROP-003 [thrift]: Unrecognized DSN connection properties are forwarded to the server as session configuration instead of being dropped, so a DSN with any unknown key fails with CONFIG_NOT_AVAILABLE (SQLSTATE 42K0I) rather than connecting
    • failing test: TestUnrecognizedConnectionPropertyIsTolerated (see the coverage PR diff under tests/)
  • CONNPROP-003: Unrecognized DSN connection properties are forwarded to the server as session configuration instead of being dropped, so a DSN carrying any unknown key fails with CONFIG_NOT_AVAILABLE (SQLSTATE 42K0I) rather than connecting

Reproduce & Expected

CONNPROP-003 — Verify that a connection property the driver does not recognize is tolerated: the connection still succeeds, exactly one session is opened, and a query returns results.

Reproduce:

SELECT 1 AS test_value

Expected (per the shared spec):

  • completes without an exception
  • result has exactly 1 row(s)
  • [thrift] exactly 1 OpenSession call(s)
  • [sea] exactly 1 CreateSession call(s)

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions