Repository navigation
learn: retrospective learnings #644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
oss-engineer-bot
wants to merge
1
commit into
main
Choose a base branch
from
ai/learning-distill-pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Learning journal 2026-12-03 | ||
|
|
||
| ### 2026-12-03: Arrow results — Arrow bigNumToBigInt returns a string for Decimal128 despite its bigint typing | ||
| **Context:** In PR #658, wide negative DECIMAL values lost exactness because `util.bigNumToBigInt` returns a decimal string for Decimal128 even though it is typed as `bigint`. The formatter's tests passed hand-built `BigInt` values, so they never hit the real runtime type. | ||
| **Rule:** Normalize Arrow `bigNumToBigInt` output with `BigInt(value)` before doing arithmetic, and test DECIMAL formatting with values decoded from real Arrow Decimal vectors, including wide negatives, rather than hand-built BigInts. | ||
|
|
||
| ### 2026-12-03: Test design — Test oracles must not certify known-wrong values | ||
| **Context:** In PR #658, a new precision-mode oracle treated negative-scale decimals as unscaled integers, so it expected `"1"` where the true value is `100`. The reviewer asked that exactness assertions be limited to nonnegative scales. | ||
| **Rule:** Restrict new exactness assertions to inputs where production behavior is correct, keep default-mode coverage for unsupported edge cases, and track the gap separately instead of writing an expectation that blesses a wrong value. | ||
|
|
||
| ### 2026-12-03: Test design — Extend existing fixture matrices instead of adding parallel test scaffolding | ||
| **Context:** In PR #658, the reviewer had a separate nested-decimal block and a new e2e file removed. Swapping the wide negative into the existing scalar/container fixture and the shared rowMaterialization e2e matrix still caught the regression. | ||
| **Rule:** Cover a regression by strengthening values in the existing backend/mode fixture matrix rather than adding duplicate connection or session scaffolding, and confirm that the extended fixture fails against the old code. | ||
|
|
||
| ### 2026-12-03: Arrow results — Thrift non-native Arrow mode parses complex values as lossy JSON | ||
| **Context:** In PR #658, exactness for nested DECIMALs inside structs, arrays and maps was asserted only for the kernel and native-Arrow Thrift. Thrift's non-native mode parses complex values as JSON, which loses precision. | ||
| **Rule:** Assert nested numeric exactness only on the kernel and on Thrift with `useArrowNativeTypes`, and never add assertions that treat Thrift non-native JSON-parsed complex values as exact. | ||
|
|
||
| ### 2026-12-03: Configuration and authentication — Map generic SOCKS protocol to socks5h on kernel for DNS parity with Thrift | ||
| **Context:** In PR #653, the kernel's `proxy` option gained SOCKS support. Thrift's socks-proxy-agent resolves DNS at the proxy for `socks`, and the kernel rejects a bare `socks://`. The kernel still drops the SOCKS4 user ID that Thrift sends from `auth.username`, so the reviewer required partial (⚠️) support marking. | ||
| **Rule:** Map the `socks` proxy protocol to `socks5h` on the kernel, pass the other schemes through verbatim, and mark proxy support partial until SOCKS4 user IDs are forwarded the way Thrift forwards them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔵 Low — L-0089 and L-0090 (#651) are added with no source. No 2026-12-02 journal exists, and a grep for 651 finds nothing else under .claude/knowledge. Restore the 2026-12-02 journal file in this PR, or remove those two lessons until it lands.
🔀 Found by Claude Opus 5.5 · confirmed by the judge