|
1 | 1 | # Lessons |
2 | 2 |
|
3 | | -<!-- distilled-through: 2026-11-18 --> |
| 3 | +<!-- distilled-through: 2026-12-02 --> |
4 | 4 |
|
5 | 5 | ## Configuration and authentication |
6 | 6 | - L-0001 (3×, #457): Trace option support through DBSQLClient, auth adapters and each transport. Type declarations and class comments do not establish forwarding; shared preparation can precede backend-specific filtering. |
|
12 | 12 | - L-0007 (1×, #509): Verify native capabilities against generated declarations and shipped bindings. Do not assert unobservable published-binary behavior from connector source alone. |
13 | 13 | - L-0008 (1×, #506): Resolve runtime telemetry identity identically on both backends, including POSIX locale precedence LC_ALL, LC_MESSAGES, then LANG. |
14 | 14 | - L-0009 (1×, #506): Verify omitted/default branches are reachable; upstream default injection may prevent native defaults from ever taking effect. |
15 | | -- L-0010 (1×, #519): Kernel requires nondefault ports embedded in host; a separate port option is forwarded only by Thrift. |
| 15 | +- L-0010 (2×, #636 #519): Forward port to kernel with Thrift semantics: falsy/NaN means omitted (port || default), default from effective scheme (80 for https:false or http://), host-embedded port wins, and non-numeric values throw ParameterError in TypeScript. |
16 | 16 | - L-0011 (1×, #528): Empty metadata filters have method/backend-specific semantics. Normalize empty catalog to undefined only where wildcard behavior is intended and verified. |
17 | 17 | - L-0012 (1×, #533): Required string validation must distinguish non-string values from legitimate empty strings. |
18 | 18 | - L-0013 (1×, #536): Metadata rewrites must preserve server values for omitted/wildcard request patterns rather than stamping the request pattern onto every row. |
|
27 | 27 | - L-0022 (1×, #588): Match host/URL normalization across backends for slashes, embedded ports and IPv6; compare edge cases on both before changing either. |
28 | 28 |
|
29 | 29 | ## Native packages and public compatibility |
30 | | -- L-0023 (4×, #505 #513 #514): New native fields need published binding support. Land router capability/version checks and all platform optionalDependency pins together; source-only KERNEL_REV bumps or accepted TypeScript fields do not ship support. |
| 30 | +- L-0023 (5×, #636 #514 #513): New native fields need published binding support. Land capability checks with all platform optionalDependency pins and lockfile; keep driver-side fallbacks until then. Source-only KERNEL_REV bumps or accepted TypeScript fields do not ship support. |
31 | 31 | - L-0024 (2×, #514 #506 #528): Regenerate native index.d.ts from the pinned build and review its contract changes. Mocked JS tests cannot verify ABI behavior or live-server compatibility. |
32 | 32 | - L-0025 (1×, #514): Changelog entries for source-only native features must state the required follow-up published package bump and reference the kernel change. |
33 | 33 | - L-0026 (3×, #516 #522 #538): Public package-lock resolved URLs must use registry.npmjs.org after internal-mirror installs; integrity hashes remain content-addressed. |
|
78 | 78 | - L-0065 (1×, #566): Build after installs that omit prepare so generated lib/version.ts exists before tests/type checks. |
79 | 79 | - L-0066 (1×, #566 #562): Serialize branch-editing bot flows with one per-PR concurrency group and restore dependency-setup lockfile rewrites before agent edits. |
80 | 80 | - L-0067 (1×, #621 #620): GitHub Actions expressions allow hyphens in dot-dereferenced names; do not flag or rewrite `${{ inputs.some-name }}` as subtraction. |
| 81 | +- L-0085 (1×, #654): CI building the native binding from KERNEL_REV must assert the napi router's exports are identical to the locally built .node module's, so fallback to a published platform package cannot pass. |
| 82 | + |
| 83 | +## Result handling |
| 84 | +- L-0086 (1×, #651): Detect Thrift no-output statements from an empty Arrow schema, not the `Result STRING` TTableSchema placeholder; normalize into a separate cached copy and leave raw accessors like getMetadata() verbatim. |
| 85 | +- L-0087 (1×, #651): Every result handler's hasMore() must return false for zero-column schemas; test fetchAll and fetchChunk for termination and a bounded fetchResults call count. |
0 commit comments