instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
triggerdotdev__trigger.dev__2081
triggerdotdev/trigger.dev
2,081
defect
e08e493b3cf2b6073b7620185f0074d179b2670b
2bd533d75a8d250cd5375cc5a95519c89fb5e694
release concurrency system reliability improvements
- Make refilling tokens to the release concurrency token bucket more reliable by accounting for specific snapshots releasing concurrency, with an additional sweeper process that runs periodically to cleanup stale snapshots and refill token buckets that are incorrectly depleted - Refill tokens when a run is cancelled w...
diff --git a/apps/webapp/app/components/admin/debugRun.tsx b/apps/webapp/app/components/admin/debugRun.tsx index 894a2a3bc95..5d5386a58aa 100644 --- a/apps/webapp/app/components/admin/debugRun.tsx +++ b/apps/webapp/app/components/admin/debugRun.tsx @@ -66,7 +66,15 @@ function DebugRunContent({ friendlyId }: { friendlyI...
16
1
1
[{"id": "G0", "claim": "The debug loader should select only the needed project field(s) (e.g. `project: { select: { id: true } }`) instead of fetching the entire `project` object, which is wasteful and increases the size of the JSON sent to the client.", "category": "performance", "verdict": "uncertain", "priority": "P...
null
triggerdotdev__trigger.dev__2106
triggerdotdev/trigger.dev
2,106
defect
e84ede95999a47a72f1c2162f0efe23f9f84124d
ca8b8a7a48a37a8db482e49a3a3586be8265e9a6
Improve metadata flushing efficiency by collapsing operations (fix #2104)
This PR implements "operation collapsing" client-side to prevent run metadata flush failures because of too-large of a request body. Many operations, especially increment and decrement on a single key, can easily be "collapsed" into a single operation.
diff --git a/apps/webapp/app/routes/api.v1.runs.$runId.metadata.ts b/apps/webapp/app/routes/api.v1.runs.$runId.metadata.ts index ce9222a18a3..c3f8a1ce437 100644 --- a/apps/webapp/app/routes/api.v1.runs.$runId.metadata.ts +++ b/apps/webapp/app/routes/api.v1.runs.$runId.metadata.ts @@ -12,7 +12,7 @@ const { action } = cr...
3
2
0
[{"id": "G0", "claim": "The `currentIncrement` declaration inside the `increment` switch clause could be accessed by other switch clauses, violating block scoping (Biome noSwitchDeclarations error); wrap it in a block.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
triggerdotdev__trigger.dev__2475
triggerdotdev/trigger.dev
2,475
defect
ed23615aa444212affae9004356bbd92f34f7090
cd07aae84fcf51ae0fcfd6841e61aeef43197e51
fix(webapp): prevent duplicate preview env image tags
``` Old tags: 20250903.1.preview-some-branch New tags: 20250903.1.preview-some-branch.1234abcd ``` fixes #2473
diff --git a/apps/webapp/app/v3/getDeploymentImageRef.server.ts b/apps/webapp/app/v3/getDeploymentImageRef.server.ts index e01f340a26a..2d88deb9de4 100644 --- a/apps/webapp/app/v3/getDeploymentImageRef.server.ts +++ b/apps/webapp/app/v3/getDeploymentImageRef.server.ts @@ -11,6 +11,10 @@ import { STSClient, AssumeRoleCo...
6
3
0
[{"id": "G0", "claim": "The test assertions build RegExp from interpolated values while escapeHostForRegex escapes only dots (leaving backslashes and the namespace/projectRef parts unescaped), which triggers GHAS/ast-grep warnings; the tests should escape every dynamic part or assert exact strings instead.", "category"...
null
triggerdotdev__trigger.dev__2637
triggerdotdev/trigger.dev
2,637
defect
8fdbbeb02f3d022c2900e79f75f3e8cfa6be81b0
29227de5f5744714f3fa89bbfc3f4dc216cc0d19
chore(runner): move max duration logic into parent process
Max duration also gets priority over all other errors. Hitting this limit will kill the child, i.e. run, process.
diff --git a/.changeset/big-ants-act.md b/.changeset/big-ants-act.md new file mode 100644 index 00000000000..653c97ed445 --- /dev/null +++ b/.changeset/big-ants-act.md @@ -0,0 +1,6 @@ +--- +"trigger.dev": patch +"@trigger.dev/core": patch +--- + +Move max duration handling into the parent process diff --git a/packages/...
7
1
1
[{"id": "G0", "claim": "If zodIpc.send() fails or rejects inside the MAX_DURATION_EXCEEDED listener the error may be silently swallowed as an unhandled promise rejection; add explicit error handling (try/catch) around the send.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"},...
null
triggerdotdev__trigger.dev__2890
triggerdotdev/trigger.dev
2,890
defect
260fb7cd709018bffdc0304b6db08a6bb2c1a2e9
9e4456ecdaa3ab89f60f8a228663bedf0d77d754
fix: upgrade Node.js to 20.20.0 to address async_hooks DoS vulnerability
## Summary - Upgrades Node.js from 20.19.0 to 20.20.0 (and 22.12.0 to 22.22.0 for supervisor) to address the async_hooks stack overflow DoS vulnerability - Adds `maxDepth` parameter (default 128) to `flattenAttributes` and `unflattenAttributes` to prevent stack overflow on maliciously deep nested structures ## D...
diff --git a/.changeset/thirty-trainers-reflect.md b/.changeset/thirty-trainers-reflect.md new file mode 100644 index 00000000000..681f87acd83 --- /dev/null +++ b/.changeset/thirty-trainers-reflect.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/core": patch +--- + +Add a maxDepth to flatten/unflattenAttributes to prevent possi...
6
2
2
[{"id": "G0", "claim": "Add the changeset for the @trigger.dev/core package that CLAUDE.md requires when a public package is modified (patch, since the new maxDepth parameter is backward-compatible).", "category": "process", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The de...
null
triggerdotdev__trigger.dev__3137
triggerdotdev/trigger.dev
3,137
defect
719a44da01c398b8a149f61afaa834c7b7c3bb97
c4ca399a9d60e4d514b0aeb24cef8657dc9b2ff1
feat(server): Gracefully handle oversized batch items instead of aborting the stream
Gracefully handle oversized batch items instead of aborting the stream. When an NDJSON batch item exceeds the maximum size, the parser now emits an error marker instead of throwing, allowing the batch to seal normally. The oversized item becomes a pre-failed run with `PAYLOAD_TOO_LARGE` error code, while other items...
diff --git a/.changeset/modern-boxes-watch.md b/.changeset/modern-boxes-watch.md new file mode 100644 index 00000000000..e9539e2105b --- /dev/null +++ b/.changeset/modern-boxes-watch.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/sdk": patch +--- + +Add PAYLOAD_TOO_LARGE error to handle graceful recovery of sending batch trigg...
8
1
1
[{"id": "G0", "claim": "The null/undefined payload guard the PR added to the success-failure serialization path was not applied to the identical serialization logic in the catch block (batch-queue/index.ts:919), so an unexpected error on the final attempt with an undefined/null payload can make JSON.stringify return un...
null
triggerdotdev__trigger.dev__3166
triggerdotdev/trigger.dev
3,166
defect
b192b71b930155d90b8a787500f6994bd4307c59
8d2b9cac865884ac6f790d02f3b560bb42577975
fix(batch): move batch queue global rate limiter to worker consumer level
The global rate limiter was being applied at the FairQueue claim phase, consuming 1 token per queue-claim-attempt rather than per item processed. With many small queues (each batch is its own queue), consumers burned through tokens on empty or single-item queues, causing aggressive throttling well below the int...
diff --git a/.server-changes/batch-rate-limiter-fix.md b/.server-changes/batch-rate-limiter-fix.md new file mode 100644 index 00000000000..4982839c3a3 --- /dev/null +++ b/.server-changes/batch-rate-limiter-fix.md @@ -0,0 +1,6 @@ +--- +area: webapp +type: fix +--- + +Move batch queue global rate limiter from FairQueue c...
9
4
3
[{"id": "G0", "claim": "After a denied limit() call the consumer sleeps once and then proceeds to process a message without re-checking token acquisition, multiple consumers can all sleep and proceed simultaneously and overshoot the global rate ceiling, and the plain setTimeout sleep is not tied to the abort signal so ...
null
triggerdotdev__trigger.dev__3405
triggerdotdev/trigger.dev
3,405
defect
ff290dfe2f6de3f54c524d058a91fa93f7901640
589b03fc9bfe6ad74d725e1fe99348a1c1987cc5
fix(core): truncate large error stacks and messages to prevent OOM
## Summary Large error stacks and messages can OOM the worker process when serialized into OTel spans or `TaskRunError` objects. This was reported when throwing an error with a massive `.stack` property from a chat agent hook. This adds frame-based stack truncation (similar to Sentry's approach) plus message length l...
diff --git a/.changeset/truncate-error-stacks.md b/.changeset/truncate-error-stacks.md new file mode 100644 index 00000000000..b39eb3ae031 --- /dev/null +++ b/.changeset/truncate-error-stacks.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/core": patch +--- + +Truncate large error stacks and messages to prevent OOM crashes. Sta...
9
5
4
[{"id": "G0", "claim": "Truncating CUSTOM_ERROR.raw to 1,000 characters with truncateMessage produces invalid JSON, so JSON.parse in createErrorTaskError throws for any thrown non-Error, non-string object whose JSON serialization exceeds 1,000 chars; the reviewer asks to keep raw valid JSON (no truncation, a safe { tru...
null
triggerdotdev__trigger.dev__3427
triggerdotdev/trigger.dev
3,427
defect
7d7ebdde5259b58d73f8a2f10aedfb857b5b70d5
43e8543dad57e6252fac4fad81b406bdcf5b0b4b
fix: handle fast-completion race in batch streaming seal check
## Problem When `batchTrigger()` is called with large payloads, each item's payload is uploaded to R2 server-side during the streaming loop before being enqueued. This makes the loop slow — around 3 seconds per item. Workers pick up and execute each item as it's enqueued, running concurrently with the ongoing stream. ...
diff --git a/apps/webapp/app/runEngine/services/streamBatchItems.server.ts b/apps/webapp/app/runEngine/services/streamBatchItems.server.ts index 859dfe2e6b9..9929e21d239 100644 --- a/apps/webapp/app/runEngine/services/streamBatchItems.server.ts +++ b/apps/webapp/app/runEngine/services/streamBatchItems.server.ts @@ -212...
2
2
0
[{"id": "G0", "claim": "The second seal-race check (line 296) only accepts a batch that is sealed with status PROCESSING, so when the BatchQueue completion path sets the batch to COMPLETED (without sealed=true) between the count read and the seal attempt, the seal fails and the check throws a ServiceValidationError for...
null
triggerdotdev__trigger.dev__3438
triggerdotdev/trigger.dev
3,438
defect
7d7ebdde5259b58d73f8a2f10aedfb857b5b70d5
3fe654a536e813f70367b23a0aaacbff5abf86f4
test: e2e auth baseline tests + webapp testcontainer infrastructure
Adds a minimal end-to-end test harness that spawns the compiled webapp as a child process against a throwaway Postgres container, plus a baseline of 8 auth-behaviour tests. These tests will be used as a regression check before and after the upcoming apiBuilder RBAC migration to confirm auth behaviour is unchanged. ## ...
diff --git a/apps/webapp/test/api-auth.e2e.test.ts b/apps/webapp/test/api-auth.e2e.test.ts new file mode 100644 index 00000000000..e1d4963d159 --- /dev/null +++ b/apps/webapp/test/api-auth.e2e.test.ts @@ -0,0 +1,121 @@ +/** + * E2E auth baseline tests. + * + * These tests capture current auth behavior before the apiBui...
13
6
5
[{"id": "G0", "claim": "randomHex() is built on Math.random(), which is cryptographically insecure and has limited, zero-padded entropy, so the generated API keys and unique slugs are unsuitable for a security context and can collide on the unique constraints and fail with flaky P2002 errors.", "category": "security", ...
null
triggerdotdev__trigger.dev__432
triggerdotdev/trigger.dev
432
defect
315b94d05b58c0093f6f7bc3c1b70600fd324ec2
1e93a2bfe10e45bf7bdf85d1db3782f7d00d19ab
Add `@trigger.dev/testing` package
As ordered. ```env # build pnpm build --filter @trigger.dev/testing # install pnpm install # test pnpm test --filter @examples/unit-testing ``` Leaving this in draft as I won't be available for a few days. Should be ready though, so feel free to test and review! Fixes #379 /claim #379
diff --git a/examples/unit-testing/.gitignore b/examples/unit-testing/.gitignore new file mode 100644 index 00000000000..b512c09d476 --- /dev/null +++ b/examples/unit-testing/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/examples/unit-testing/dummy-integration/index.ts b/examples/unit-...
1
1
1
[{"id": "G0", "claim": "The integration-task mocking in packages/testing/src/index.ts no longer works because integrations no longer expose explicit tasks (tasks are now methods, possibly nested), and the reviewer asks to mock io.runTask instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "s...
null
triggerdotdev__trigger.dev__617
triggerdotdev/trigger.dev
617
defect
29ca09e42df3a8e5a34e00054ccc808826ca645d
b14884ecd733cbd4edd26ccb822f1db29360f5e0
Feat: add `maxDuration` setting for API/Trigger route in the CLI Init Command for Next.js
Closes #613 ## ✅ Checklist - [x] I have followed every step in the [contributing guide](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md) - [x] The PR title follows the convention. - [x] I ran and tested the code works --- ## Testing 1. Created a project using `Next.js@13.0.3`. 2. R...
diff --git a/.changeset/twenty-mangos-hide.md b/.changeset/twenty-mangos-hide.md new file mode 100644 index 00000000000..32ee48b9d04 --- /dev/null +++ b/.changeset/twenty-mangos-hide.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/cli": patch +--- + +Added Next.js `maxDuration` commented out to the api/trigger file using CLI in...
1
1
1
[{"id": "G0", "claim": "If the user has a weird value for their Next.js version, the regex match can return null and the non-null assertion `![0]` will throw an exception; the code should return null instead (via `?.at(0) ?? null`) in both the dependencies and devDependencies branches.", "category": "correctness", "ver...
null
triggerdotdev__trigger.dev__815
triggerdotdev/trigger.dev
815
defect
26d223ab367310b13587031dd6317ad5b448a68e
5f38868b85878f7d0d348e6507c4a5cb2333b8f3
feat: Add $not to eventFilters
Closes #810 ## ✅ Checklist - [x] I have followed every step in the [contributing guide](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md) - [x] The PR title follows the convention. - [x] I ran and tested the code works --- ## Changelog - not filter added in event filters ---
diff --git a/packages/core/src/eventFilterMatches.ts b/packages/core/src/eventFilterMatches.ts index 27c7a573bf8..c175797a52b 100644 --- a/packages/core/src/eventFilterMatches.ts +++ b/packages/core/src/eventFilterMatches.ts @@ -198,5 +198,15 @@ function contentFilterMatches(actualValue: any, contentFilter: ContentFilt...
1
1
1
[{"id": "G0", "claim": "A test asserting that a payload fails to match a $not filter (false evaluation) should be added alongside the existing true-evaluation test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trillium-rs__trillium__478
trillium-rs/trillium
478
defect
ff92b556e545801cb98e257301e4112139579254
7466d78d783b1be5636aab3e97950395bf9e9c38
client, proxy, and http header tweaks
Across the three crates, this adds support for GET requests with bodies and reduces unnecessary headers, such as `Connection: keep-alive` (the default for http/1.1) and `Content-Length: 0` (the same as sending neither `Content-Length` nor `Transfer-Encoding: chunked`) Nobody should use GET requests with bodies, but ...
diff --git a/client/src/conn.rs b/client/src/conn.rs index 3a1f71b93a..594b73adf2 100644 --- a/client/src/conn.rs +++ b/client/src/conn.rs @@ -16,7 +16,7 @@ use trillium_http::{ transport::BoxedTransport, Body, Error, HeaderName, HeaderValue, HeaderValues, Headers, KnownHeaderName::{ - Connection,...
1
1
0
[{"id": "G0", "claim": "The content_length match expression in proxy/src/lib.rs looks like it could be written with the matches! macro.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
trillium-rs__trillium__637
trillium-rs/trillium
637
defect
0bc24356e30d941787dcb6fe97b5362b45e69757
4821e14335ef5a94d0172ad80b1d555021eda80f
feat: deprecate set_state for insert_state
I'm on the fence about this api churn, but this was a mistake that has been bothering me for a while, and trillium hasn't had intentional breaking changes since August 2021. I'm going to hold off on releasing this until #611 is ready, just in case there are other easily-deprecatable changes, and then I'll stagger th...
diff --git a/channels/src/channel_central.rs b/channels/src/channel_central.rs index 0bb47efae2..f3f1748064 100644 --- a/channels/src/channel_central.rs +++ b/channels/src/channel_central.rs @@ -86,7 +86,7 @@ where let (client, receiver) = self.build_client(vsn); - conn.set_state(client); + c...
1
1
0
[{"id": "G0", "claim": "The public Conn::set_state method in trillium/src/conn.rs lacks a documentation comment, so the missing_docs lint flags it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trilogy-libraries__trilogy__110
trilogy-libraries/trilogy
110
defect
640f990f26c12564935af16a96d9a9bf294d0a1d
feca08c88fc8df0936d06ff8f4a61074e9422fdc
Improve wait callback and timeout handling
This makes a couple improvements to how we wait for the socket to become ready for I/O. First this refactors `TRILOGY_RB_TIMEOUT` to a "real" error status in the C library (though currently nothing in the C library raises it), which allows it to be negative like all the other errors (and avoids being confused with a...
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index db8076ae..79720399 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -15,8 +15,6 @@ #include "trilogy-ruby.h" -#define TRILOGY_RB_TIMEOUT 1 - VALUE Trilogy_CastError; stati...
1
1
0
[{"id": "G0", "claim": "An inline comment explaining that `args.rc` is the return value of `rb_wait_for_single_fd`, where 0 means timeout (unlike other `rc == 0` = `TRILOGY_OK` uses), would be worth adding in addition to the commit message.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope...
null
trilogy-libraries__trilogy__112
trilogy-libraries/trilogy
112
defect
a1f46bbb79f866c157ead6d483474670bdb17334
2a0092aa6149860ec9a59b1e878926ab735c2fd2
Fixes to OpenSSL error handling
This fixes a number of issues with our OpenSSL integration. First this ensures that the socket is shutdown (or closed post-#111) after error from OpenSSL. Previously we only closed the connection on `TRILOGY_OPENSSL_ERR` but not on a `TRILOGY_CLOSED_CONNECTION` or `TRILOGY_SYSERR` which could be returned/translated ...
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index 0e7940e7..7e128e1a 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -94,12 +94,26 @@ static void trilogy_syserr_fail_str(int e, VALUE msg) rb_raise(Trilogy_ConnectionRef...
1
1
0
[{"id": "G0", "claim": "In test_configured_max_packet_above_server, avoid reassigning the exception variable and just call assert_raises_connection_error do ... end.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trilogy-libraries__trilogy__15
trilogy-libraries/trilogy
15
defect
b38737996ad77ddf2b0eb50bb3f101a5577bc497
b81d3ed2ec1ac94f8e1bd4b949488e91c889d976
Refactor error classes
Fix: https://github.com/github/trilogy/issues/11 Opening this as a draft because I hit a few roadblocks, so I figured I should solicit some feedback. The goals are: - Not raise any error that isn't a descendant of `Trilogy::Error`. - Have a clear distinction between transient network errors that may be re...
diff --git a/contrib/ruby/ext/trilogy-ruby/cast.c b/contrib/ruby/ext/trilogy-ruby/cast.c index f0255560..d5305b26 100644 --- a/contrib/ruby/ext/trilogy-ruby/cast.c +++ b/contrib/ruby/ext/trilogy-ruby/cast.c @@ -71,7 +71,7 @@ static void cstr_from_value(char *buf, const trilogy_value_t *value, const char { if (v...
7
5
4
[{"id": "G0", "claim": "Blanket-classifying every TRILOGY_ERR under one error risks treating client errors like query parse errors (error code 1064) as retriable connection errors; the PR should map explicit MySQL error codes to specific classes (mysql2-style) with a generic fallback for the rest.", "category": "design...
null
trilogy-libraries__trilogy__171
trilogy-libraries/trilogy
171
defect
99dab929919e1baba7bdb1a8602d1433c8dab9f5
8d2a0dcb67db1d29f34006a1835d236be42ba043
Implement support for cleartext authentication plugin
Resolves: https://github.com/trilogy-libraries/trilogy/issues/157 Redo of: https://github.com/trilogy-libraries/trilogy/pull/168 The server doesn't request for cleartext plugin in the first handshake as it is not a default plugin. The client should only provide cleartext password when the server requests an auth sw...
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c56e5a62..4bf63925 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -6,7 +6,7 @@ on: tags: - v* pull_request: - + jobs: test: name: Test @@ -44,6 +44,7 @@ jobs: $(brew --prefix ...
3
2
2
[{"id": "G0", "claim": "The second else-if branch in trilogy_build_auth_switch_response_packet compares against \"caching_sha2_password\" again instead of \"mysql_native_password\", so native-password auth would take the wrong code path.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "i...
null
trilogy-libraries__trilogy__210
trilogy-libraries/trilogy
210
defect
d22ed280f1b5358d54c3bebb905445779ff38f3b
9ca5024824bc50375553351c33a29641adaaeb12
Encode column names with encoding of context
We detected some behaviour which might lead to some unexpected failures when migrating from the `mysql2` Adapter to the `trilogy` adapter. In the result set returned by a query, one can access the column names using the `fields` attribute, however the encoding of these strings is different from the encoding of the dat...
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index 54dc8168..49659c19 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -811,10 +811,12 @@ static VALUE read_query_response(VALUE vargs) } } + rb_encod...
2
2
2
[{"id": "G0", "claim": "The rb_to_encoding call added in read_query_response is quite costly and should be made only once after connect with the resulting rb_encoding * kept in ctx, or at the very least moved outside the loop so 20 fields do not trigger 20 conversions.", "category": "performance", "verdict": "supported...
null
trilogy-libraries__trilogy__212
trilogy-libraries/trilogy
212
defect
d22ed280f1b5358d54c3bebb905445779ff38f3b
9c5656630398e71a2761428e3d4e3fac47f05bf6
Speedup Trilogy#escape by 3 to 5x
Copying characters one by one is very inneficient, especially since each time the buffer capacity has to be checked again and again. Using `memcpy` for chunks of bytes that don't need any escaping, we can save a lot of time. Before: ``` ruby 3.3.4 (2024-07-09 revision be1089c8ec) +YJIT [arm64-darwin23] Warmi...
diff --git a/inc/trilogy/buffer.h b/inc/trilogy/buffer.h index 8e57a199..0ea35fa9 100644 --- a/inc/trilogy/buffer.h +++ b/inc/trilogy/buffer.h @@ -53,6 +53,19 @@ int trilogy_buffer_expand(trilogy_buffer_t *buffer, size_t needed); */ int trilogy_buffer_putc(trilogy_buffer_t *buffer, uint8_t c); +/* trilogy_buffer_p...
3
3
0
[{"id": "G0", "claim": "The new buffer append function should be named `trilogy_buffer_write` instead of `trilogy_buffer_puts`, since `puts` implies appending a newline as in C's or Ruby's puts.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `cur...
null
trilogy-libraries__trilogy__214
trilogy-libraries/trilogy
214
defect
857c167ef845fa7d9b4e670341670d11ce6bba22
c080567a95f7c412b9bffffbabf59a549fa87e5e
ruby: Implement a buffer pool
The trilogy client eagerly allocate a 32kiB buffer, and grows it as needed. It's never freed not shrunk until the connection is closed. Since by default the MySQL `max_allowed_packet` is 16MiB, long living connections will progressively grow to that size. For basic usage it's not a big deal, but some applications ma...
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index 54dc8168..70d731a8 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -15,6 +15,161 @@ #include "trilogy-ruby.h" +typedef struct _buffer_pool_entry_struct { + size_t cap; +...
4
3
2
[{"id": "G0", "claim": "A newly created pool allocates 16 entry slots even though the configured buffer_pool_max_size is 8, and it would make more sense to allocate 8 or the configured max size to start with.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
trilogy-libraries__trilogy__218
trilogy-libraries/trilogy
218
defect
b517fcf68e29a3e8b8647aaedd6c217c9e7a2c88
d864e9303d2cb2afae9fb1e60ae4f6363b7b250f
Establish socket connection in Ruby
Fix: https://github.com/trilogy-libraries/trilogy/pull/139 Inspired by @byroot's work in #139 This moves the responsibility for establishing the initial TCP or unix socket connection to Ruby. This allows us to lean on Ruby's implementation and configuration of DNS timeouts as well as happy eyeballs/fast fallback....
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index 54dc8168..372ee99e 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -295,42 +295,29 @@ static int _cb_ruby_wait(trilogy_sock_t *sock, trilogy_wait_t wait) return TRILOGY_OK;...
1
1
1
[{"id": "G0", "claim": "rb_io_descriptor was added in Ruby 3.1 (not 3.0), so the PR's direct use of it would fail to build on Ruby 3.0, which the gemspec still claims to support; a fallback for Ruby < 3.1 is wanted.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
trilogy-libraries__trilogy__271
trilogy-libraries/trilogy
271
defect
9f8ba20e639690a823a786bb5aa857179d15c7b8
641c62961523e22728fcc637e89157f0172d252e
Replace sscanf datetime parsing with Go-inspired byte-arithmetic
## Summary Replace all three `sscanf()`-based datetime parsing blocks (DATETIME/TIMESTAMP, DATE, TIME) in `cast.c` with inline byte-arithmetic parsers inspired by Go's [`go-sql-driver/mysql` `parseDateTime()`](https://github.com/go-sql-driver/mysql/blob/master/utils.go#L108-L228) implementation, **and** replace `rb_fu...
diff --git a/contrib/ruby/ext/trilogy-ruby/cast.c b/contrib/ruby/ext/trilogy-ruby/cast.c index c3e629cc..22bc7b59 100644 --- a/contrib/ruby/ext/trilogy-ruby/cast.c +++ b/contrib/ruby/ext/trilogy-ruby/cast.c @@ -1,5 +1,7 @@ #include <ruby.h> #include <ruby/encoding.h> +#include <time.h> +#include <limits.h> #includ...
4
4
0
[{"id": "G0", "claim": "Ruby exposes C-level APIs for constructing Time objects, so the PR should use one instead of rb_funcall(rb_cTime, ...) rather than treating the ~106 ns Time construction cost as irreducible.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "...
null
trilogy-libraries__trilogy__287
trilogy-libraries/trilogy
287
defect
b5f817234a087c9a0381825f37545e36f7edf25e
ae103e0c1c390fe31556681aa81461c88def7b2b
Fix local time usec bug
https://github.com/trilogy-libraries/trilogy/pull/286 accidentally added an unnecessary `/ 1000`, which made usec say `159` instead of `159491`
diff --git a/contrib/ruby/ext/trilogy-ruby/cast.c b/contrib/ruby/ext/trilogy-ruby/cast.c index 4f083708..1377c7dc 100644 --- a/contrib/ruby/ext/trilogy-ruby/cast.c +++ b/contrib/ruby/ext/trilogy-ruby/cast.c @@ -104,7 +104,7 @@ static VALUE trilogy_make_time(int year, int month, int day, int hour, int min, ...
1
1
0
[{"id": "G0", "claim": "The field-by-field assertions in test_datetime_fractional_6_digits could be replaced with a single `assert_equal \"2020-05-25 23:22:01.159491\", time.iso8601(6)` assertion, which would be simpler and clearer and would better guard against confusing `usec` with `msec`.", "category": "testing", "v...
null
trilogy-libraries__trilogy__35
trilogy-libraries/trilogy
35
defect
c9eb4e43e8c7371dbf07731fe07c4d44d95817b0
a11e8f05e0c64829f631098ff66fd92f58e85fbc
[Ruby]: MULTI statement support
Closes #34 This PR adds `MULTI` statement support on the Trilogy Ruby binding. #### API After some iteration, I think the nicest interface for multi statement is introducing two methods: 1. A predicate method (ie. `more_results_exist?`, name subject to change) 2. A `next_result` cursor method which iterates...
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index 81e32574..2f4b757e 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -23,7 +23,7 @@ static ID id_socket, id_host, id_port, id_username, id_password, id_found_rows, id_write_t...
5
3
2
[{"id": "G0", "claim": "#next_result should return nil, matching Mysql2's #store_result, when called after all results have been enumerated, instead of returning Qundef under the TODO at the top of rb_next_result.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
trilogy-libraries__trilogy__37
trilogy-libraries/trilogy
37
defect
0a02696dd1bcc08c059cbaf197427588347f38dc
7048795602828392849f68f01eb6bcf4ed3734ac
Cast to Integer when there are no decimals
Prior to this commit we'd always cast a SUM query to `BigDecimal`, since the column type we get from the server is 246 (i.e. TRILOGY_TYPE_NEWDECIMAL). After this commit we'll only cast to `BigDecimal` if the column includes decimal digits. If there are none (i.e. if column->decimals is 0), we cast to `Integer` inste...
diff --git a/contrib/ruby/ext/trilogy-ruby/cast.c b/contrib/ruby/ext/trilogy-ruby/cast.c index a1660250..cee32129 100644 --- a/contrib/ruby/ext/trilogy-ruby/cast.c +++ b/contrib/ruby/ext/trilogy-ruby/cast.c @@ -144,8 +144,12 @@ rb_trilogy_cast_value(const trilogy_value_t *value, const struct column_info *co ca...
3
3
1
[{"id": "G0", "claim": "The added lines use 2-space indent even though this file uses 4 space indent.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The TODO comment should be moved down into the else clause, since in the integer case the optimi...
null
trilogy-libraries__trilogy__48
trilogy-libraries/trilogy
48
defect
2dd91e5d1974b29473ad646e5dba0a50562fe37a
bb58cca90513aba09b67ec5f32e8b862f280d24d
Expose `#connection_options` on the Ruby binding.
This PR exposes a `#connection_options` method on the Ruby binding, allowing users to query the client for the options passed in at connect time. This is meant to be similar to [Mysql2's `#query_options`](https://www.rubydoc.info/gems/mysql2/Mysql2/Client#query_options-instance_method). We're currently using `Mysql2...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4034aa5d..a1709e32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## Unreleased ### Added - - Implement multi-statement support on the Ruby binding. + - Implement multi-sta...
1
1
0
[{"id": "G0", "claim": "The #connection_options reader should dup and freeze the stored options hash on read to discourage callers from modifying the original hash passed to Trilogy.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trilogy-libraries__trilogy__54
trilogy-libraries/trilogy
54
defect
2702f6864ee04f1a587dec00a6114d099e77c5de
05839ea3f4674084d31283c760d2e3097464fb36
Ensure Trilogy::Result objects have a consistent shape
Only really useful on 3.2+. There is also the question of wether it may be speadier to define a constructor and call it from C to assign these ivar because `rb_ivar_set` is slower than assigning instance variables from Ruby nowadays (but that's for a potential followup).
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index c6c4f64f..fc9c85de 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -646,6 +646,9 @@ static VALUE read_query_response(VALUE vargs) rb_ivar_set(result, id_ivar_affected_r...
2
1
0
[{"id": "G0", "claim": "The two rb_ivar_set lines added in the else branch of read_query_response should be indented with 8 spaces, as in the suggestion, instead of 6.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "With YJIT enabled, building Tr...
null
trilogy-libraries__trilogy__63
trilogy-libraries/trilogy
63
defect
a2696834caa4844b6abf234a11e0627a94ea68e7
e5a53a599adb6e9f127ea2dd38e7c1a113cd2b07
Raise all SystemCallErrors as `Trilogy::Error`
### Background See https://github.com/github/trilogy/pull/58 for more context. This allows syscall errors to be rescued generically by `Trilogy::Error`, or handled individually by consumers using their original Errno classes. To make this work, we subclass all of the SystemCallErrors and include the base error...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e81c9982..5ce0ddcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed - Fix msec values for time columns. #61 +### Changed + - All SystemCallErrors classified as `T...
3
2
0
[{"id": "G0", "claim": "Enumerating every Errno subclass creates ~158 exception classes the vast majority of which will never happen; casperisfine suggests alternatively defining manually a subset of errnos we care about and having a fallback Trilogy::UnexpectedSyscallError for the rest.", "category": "design", "verdic...
null
trilogy-libraries__trilogy__64
trilogy-libraries/trilogy
64
defect
a2696834caa4844b6abf234a11e0627a94ea68e7
960aa62b1dff9d657e2caba635d4df34d913f69e
Client now accepts `:encoding` option.
When `:encoding` is supplied to the client, the charset for the MySQL server is set accordingly. Additionally, we ensure that the client sends query strings in the encoding the connection expects. This will align Trilogy's encoding behaviour with Mysql2's. ## Looking for Feedback - Should we set a default encodi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e81c9982..f95d7b41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Fixed - Fix msec values for time columns. #61 +### Changed + - (BREAKING CHANGE) C API `#trilogy_bu...
6
5
3
[{"id": "G0", "claim": "The Ruby client should use utf8mb4 as the default encoding when none is passed, since utf8mb4 is the modern replacement of utf8.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The C API should let the client encoding be passed in ...
null
trilogy-libraries__trilogy__65
trilogy-libraries/trilogy
65
defect
a2696834caa4844b6abf234a11e0627a94ea68e7
b6364f6bf29f89fd891d33369b39d9755a096bf9
Ruby: Implement Client#discard! to cleanly dispose of connection post fork
If you use `Client#close` on a connection that was inherited from a parent it will close the connection for the parent. Instead we need to use some POSIX magic to close the file descriptor without emitting any close notification, so that the server isn't mislead into closing the connection on its side. cc @matthe...
diff --git a/contrib/ruby/ext/trilogy-ruby/cext.c b/contrib/ruby/ext/trilogy-ruby/cext.c index 6ce4f2fe..fb86a15c 100644 --- a/contrib/ruby/ext/trilogy-ruby/cext.c +++ b/contrib/ruby/ext/trilogy-ruby/cext.c @@ -8,6 +8,9 @@ #include <sys/time.h> #include <sys/un.h> +#include <unistd.h> +#include <fcntl.h> + #includ...
2
1
0
[{"id": "G0", "claim": "The dup2(/dev/null) discard logic should be implemented as a `trilogy_discard` function in the C library so other bindings can reuse it, with the Ruby cext only handling error raising.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
trilogy-libraries__trilogy__84
trilogy-libraries/trilogy
84
defect
296ac343f07ee5561e3b94b18ef7e4b06b17e396
f59f931a5a02898eab215f43bbceb91847f07026
validate max_allowed_packet on the client side
This is another take on #79, incorporating lessons learned while working on #81.
diff --git a/Makefile b/Makefile index 75d634a0..948c7194 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,10 @@ EXAMPLES = example/trilogy_query UNAME_S := $(shell uname -s) -ifneq ($(UNAME_S), Darwin) +ifeq ($(UNAME_S), Darwin) + CFLAGS += "-I$(shell brew --prefix openssl@1.1)/include" + LDFLAGS += "-L$(shell b...
4
4
0
[{"id": "G0", "claim": "The continuation lines of the new doc comments in inc/trilogy/builder.h should be indented to line up like the rest of the comment blocks.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "TRILOGY_MAX_PACKET_LEN should be rena...
null
trinodb__trino-go-client__112
trinodb/trino-go-client
112
defect
d61b3c290395f62999a8ae6b575d90b7794a7e4b
5ea8daa8e035991f543c83db0ab3dfd829469f86
support Geometry and Geography values as WKT strings
Allows us to use the WKT strings returned from Geometry and SphericalGeography expressions in queries like `select st_point(0, 0)` and `select to_spherical_geography(st_point(0, 0))` (both giving `"Point (0 0)"`). This would previously result in a `type not supported: "SphericalGeography"` error.
diff --git a/trino/trino.go b/trino/trino.go index 1ae20f10..e16bdb83 100644 --- a/trino/trino.go +++ b/trino/trino.go @@ -1469,7 +1469,7 @@ func (c *typeConverter) ConvertValue(v interface{}) (driver.Value, error) { return nil, err } return vv.Bool, err - case "json", "char", "varchar", "varbinary", "interva...
1
1
1
[{"id": "G0", "claim": "The new case list in ConvertValue should also include `Geometry` alongside `SphericalGeography`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trinodb__trino-go-client__113
trinodb/trino-go-client
113
defect
243670df10ccbf9c954d50bd333ed42c079c8df6
fe72e9d44fcf33a5428624b3689fc5e3cafe51fb
Support JWT authentication
Based on #110. I added certificate generation to be able to run integration tests. Statically generated certificates cannot be used, since on macOS they could only be valid for 1 year, which would require regenerating them. I also refactored `trino/integration_tls_test.go` to avoid using the reverse proxy. Fix...
diff --git a/README.md b/README.md index 497b2099..7fa3bbdc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Trino, and receive the resulting data. * Native Go implementation * Connections over HTTP or HTTPS -* HTTP Basic and Kerberos authentication +* HTTP Basic, and Kerberos authentication * Per-query us...
1
1
0
[{"id": "G0", "claim": "The README bullet should read \"HTTP Basic and Kerberos authentication\" without the comma before \"and\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
trinodb__trino-go-client__135
trinodb/trino-go-client
135
defect
33607808ff9a375a9b84b02a57abacb6db59cb6d
321f32846e2f3176bf2ece6603b590ca517a137e
Support `VARBINARY`
# Overview This PR adds support for encoding/decoding the `[]byte` go type as `VARBINARY` data. # Additional Information To keep the scope of this PR small, I did _not_ add support for reading `VARBINARY` values within complex types. This is not a regression, but a gap in the serialization/deserialization code. Ti...
diff --git a/README.md b/README.md index 9c75dd9a..f825187c 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,7 @@ types: * integers * `bool` * `string` +* `[]byte` * slices * `trino.Numeric` - a string representation of a number * `time.Time` - passed to Trino as a timestamp with a time zone @@ -317,6 +318,9...
3
2
0
[{"id": "G0", "claim": "The one-item sub-list under the `string` bullet in the README looks weird; the VARBINARY base64 note should instead be added as a note below the list.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please remove prefixes fr...
null
trinodb__trino-go-client__137
trinodb/trino-go-client
137
defect
2a51f32129c1468e3d1eca136b9632214cdcfa78
abbbc82f8971404c0868adffdbf56c9faea1edf8
Add support for optional timeout param in the DSN
This PR adds `timeout` to the DSN. Currently it's only possible to extend the timeout via the context, otherwise it's 1 min via `DefaultQueryTimeout`. Related to https://github.com/trinodb/trino-go-client/issues/131
diff --git a/README.md b/README.md index 7e64ed53..5ac69eaa 100644 --- a/README.md +++ b/README.md @@ -239,6 +239,16 @@ trino.RegisterCustomClient("otel", otelClient) db, err := sql.Open("trino", "https://user@localhost:8080?custom_client=otel") ``` +##### `timeout` + +``` +Type: time.Duration +Valid valu...
3
2
0
[{"id": "G0", "claim": "When both a DSN query_timeout and a context deadline are set, one of the two timeouts must never be silently ignored — both should apply, with the smaller one winning.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new DSN ...
null
trinodb__trino-go-client__14
trinodb/trino-go-client
14
defect
67b9a8c818cc5327fb207e1c3cc5ee0acb84cc1e
9810da9d889157d9f95dff5ca1aa63aea9e3a7c8
add callback QueryStats with callback period
### oss - #12 ### test test with 1 second callback period - presto_test code is set as 0.1 * 1000 or 0.1 seconds for build purpose Because callback period is set only at `running state` and test query is `SELECT 2`, `RUNNING -> FINISHED` state changes almost immediately so sometimes it passes `RUNNING sta...
diff --git a/trino/serial.go b/trino/serial.go index b00df442..e5c4e369 100644 --- a/trino/serial.go +++ b/trino/serial.go @@ -23,6 +23,7 @@ import ( "time" ) +// UnsupportedArgError UnsupportedArgError type UnsupportedArgError struct { t string } diff --git a/trino/trino.go b/trino/trino.go index 4365d1a4..4d...
27
25
12
[{"id": "G0", "claim": "The callback is not only about stats, so the header constant should be named trinoProgressCallbackParam with value X-Query-Progress-Callback.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The period header constant shoul...
null
trinodb__trino-go-client__140
trinodb/trino-go-client
140
defect
2a51f32129c1468e3d1eca136b9632214cdcfa78
3095cb9ede3c37587e7109542404929385058c5c
Ensure Query Cancellation on Context Deadline Expiry
## Problem description - When the driver is used with a context deadline, and the deadline is reached before processing all data, the driver does not cancel the underlying Trino query. This happens because the expiration of the context deadline isn't properly handled, and the driver does not trigger the necessary step...
diff --git a/trino/integration_test.go b/trino/integration_test.go index 6426e74c..b1ada777 100644 --- a/trino/integration_test.go +++ b/trino/integration_test.go @@ -1008,82 +1008,123 @@ func TestIntegrationUnsupportedHeader(t *testing.T) { } } -func TestIntegrationQueryContextCancellation(t *testing.T) { - err :...
3
3
0
[{"id": "G0", "claim": "The new deadline-handling branch in driverRows.fetch can be simplified to a single errors.Is check on the unwrapped error chain (errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)) instead of errors.As plus checking queryErr.Reason.", "category": "maintainability", "ver...
null
trinodb__trino-go-client__144
trinodb/trino-go-client
144
defect
822e88da122518ab3a9917cc88548e77071838bd
081cd851210c2b23115735cf50626ef49d74d48d
Add support for catalog roles
This PR adds support for specifying catalog roles in the Trino Go client via both the DSN string and the `Config` struct. Roles are passed as either: - A `map[string]string` mapping catalogs to roles (e.g. `{"hive": "analyst", "system": "admin"}`) The roles are URL-encoded and appended to the DSN as a colon-separ...
diff --git a/README.md b/README.md index ee810566..f6c6eddd 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,46 @@ Default: nil The `queryTimeout` parameter sets a timeout for the query. If the query takes longer than the timeout, it will be cancelled. If it is not set the default context timeout will be...
6
5
3
[{"id": "G0", "claim": "The roles DSN/README format should use the JDBC/session-properties style `roles=catalog1:role1;catalog2:role2` syntax instead of exposing the internal `catalog=ROLE{role}` format.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
trinodb__trino-go-client__155
trinodb/trino-go-client
155
defect
01ca2115d24fe18c7efb68144897f9e4cd7e1366
569a5809c5cefe8d29ff5acd80d36b7acf7c0c31
Add Client Tags Support
# Description This PR adds support for the `X-Trino-Client-Tags` header to be pass as connection url. The `X-Trino-Client-Tags` header is part of the official Trino client protocol and allows sending a comma-separated list of tags. These tags can be used for resource management, query monitoring, and routing rules....
diff --git a/README.md b/README.md index 56a2cf66..573b1eb5 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,34 @@ Default: nil The `queryTimeout` parameter sets a timeout for the query. If the query takes longer than the timeout, it will be cancelled. If it is not set the default context timeout will be...
2
2
2
[{"id": "G0", "claim": "The new DSN parameter should be named `clientTags` (camelCase), consistent with the JDBC driver and the other existing parameters, instead of the snake_cased `client_tags`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `clien...
null
trinodb__trino-go-client__16
trinodb/trino-go-client
16
defect
7a56b575b306aefbf1347705245b07841bb12aa7
360e59dcf163cad9ad117bd5c2c50416c744a872
implement ExecContext
This PR implements `driver.ExecContext()` to be able to run queries like `USE <catalog>.<schema>` and possibly other DDL/DML queries. While this is rarely used in application code, I noticed this when trying to use the [usql](https://github.com/xo/usql) CLI client. I also included few minor changes to satisfy `golan...
diff --git a/integration_tests/etc/catalog/jmx.properties b/integration_tests/etc/catalog/jmx.properties new file mode 100644 index 00000000..b6e0372b --- /dev/null +++ b/integration_tests/etc/catalog/jmx.properties @@ -0,0 +1 @@ +connector.name=jmx diff --git a/presto/presto.go b/presto/presto.go index 24f63eea..0ced7...
4
4
2
[{"id": "G0", "claim": "The pull request adds doc comments (e.g. on exported funcs) mainly to satisfy golangci-lint, and the reviewer asks that comments be added only where they actually improve readability.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
trinodb__trino-go-client__168
trinodb/trino-go-client
168
defect
66c0bd8610d4fbdc2ad70b1f6f7633939931c152
ca040fad54ed3424e4dd6166f8c14a8cc44812ce
Add ParseDSNToConfig function for DSN parsing support
The Trino Go client currently only supports one-way DSN operations through Config.FormatDSN(), which converts Config structs to DSN strings. However, there was no way to parse existing DSN strings back into Config structs. This created several limitations: - No roundtrip functionality: Users couldn't parse DSN strin...
diff --git a/trino/trino.go b/trino/trino.go index 39b1604b..9fd0aab5 100644 --- a/trino/trino.go +++ b/trino/trino.go @@ -209,7 +209,125 @@ type Config struct { QueryTimeout *time.Duration // Configurable timeout for query (optional) } -// FormatDSN returns a DSN string from the configuration. +f...
5
4
0
[{"id": "G0", "claim": "The new TestParseDSNToConfigAllFieldsHandled test may be redundant, since the reviewer asks whether what it checks is not already covered by the previous test.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The function should be n...
null
trinodb__trino-go-client__17
trinodb/trino-go-client
17
defect
7a56b575b306aefbf1347705245b07841bb12aa7
b42dcc106e0690d0bb86453852a1a931784d0c36
Delete cancelled query
When using `QueryContext()` and canceling the context the driver should send a DELETE request to the server to stop the query from being executed and wasting resources. I also added a 5s timeout to `go test` in `run.sh` and my editor ran `shfmt` on it, I hope it's not a problem. That fixed a few `shellcheck` issues ...
diff --git a/presto/presto.go b/presto/presto.go index 24f63eea..6859f96e 100644 --- a/presto/presto.go +++ b/presto/presto.go @@ -410,6 +410,7 @@ func (c *Conn) roundTrip(ctx context.Context, req *http.Request) (*http.Response } client := c.httpClient client.Timeout = timeout + req.Cancel = ctx.Done() ...
2
1
0
[{"id": "G0", "claim": "The refactoring-only changes to driverRows.Close should have been split out into a separate preparatory commit, as a note for future PRs.", "category": "process", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The query-context cancellation behaviour sho...
null
trinodb__trino-go-client__27
trinodb/trino-go-client
27
defect
cbe5c3c4cdcb2e3abca7cd63eb8f6e154e5df0b4
bc7aa6327542f667c38023a912f8e84cd51b9070
Unit tests cleanup
There are two major things within this PR - ordering for string items in `FormatDSN` - it doesn't affect any existing functionality although it makes tests based on URL comparison much easier since items' order within variadic query args will be consistent - unit tests cleanup - use `testify` library to make assertio...
diff --git a/go.mod b/go.mod index 0d9f760b..498e2bbe 100644 --- a/go.mod +++ b/go.mod @@ -3,13 +3,16 @@ module github.com/trinodb/trino-go-client go 1.14 require ( + github.com/davecgh/go-spew v1.1.1 // indirect github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/jcmturner/gofork v1.0.0 // indirect - gi...
4
4
0
[{"id": "G0", "claim": "The dependency changes (the testify version bump and the newly added indirect requirements) should be reverted if they are not required for switching the tests to testify.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Us...
null
trinodb__trino-go-client__41
trinodb/trino-go-client
41
defect
dab0503a8d411938ca2ef00b6b8fefd1032353b3
371a4411b6c4c96969883680faa2284f9bc5ee54
Return scan types in rows.ColumnTypes()
This PR implements the required interfaces so that rows' `ColumnTypes()` include scan types. It also adds length, precision, and size to applicable data types. [The docs for database type name](https://pkg.go.dev/database/sql/driver#RowsColumnTypeDatabaseTypeName) say it should be returned in uppercase, without any...
diff --git a/trino/trino.go b/trino/trino.go index 910fc1fd..153e40fd 100644 --- a/trino/trino.go +++ b/trino/trino.go @@ -65,7 +65,7 @@ import ( "math" "net/http" "net/url" - "regexp" + "reflect" "sort" "strconv" "strings" @@ -743,6 +743,10 @@ type driverRows struct { var _ driver.Rows = &driverRows{} ...
7
7
3
[{"id": "G0", "claim": "The Kind field of typeArgument should have its own type instead of being a bare string enumerating TYPE, NAMED_TYPE, LONG and VARIABLE.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The typeSignature field added to typeConverter ...
null
trinodb__trino-go-client__62
trinodb/trino-go-client
62
defect
f57a7435458093b3045b28b798a4f87ef9dc5080
55710ae8ffdfd36376a45d258172c2176f104451
Support offset timezone, times do not have spaces
As seen in https://trino.io/docs/current/language/types.html#time-with-time-zone, numeric offsets are supported and there is not always a space before the time zone. This PR fixes that. I have sent a CLA a few days ago, hope this is oK.
diff --git a/trino/trino.go b/trino/trino.go index 1fc1f45d..b9a3b927 100644 --- a/trino/trino.go +++ b/trino/trino.go @@ -1869,6 +1869,12 @@ var timeLayouts = []string{ "2006-01-02 15:04:05.000", } +// Layout for time and timestamp WITH time zone. +var timeLayoutsTZ = []string{ + "15:04:05.000 -07:00", + "2006-01...
3
3
1
[{"id": "G0", "claim": "Avoid allocating the vparts slice in scanNullTime when detecting the offset sign — check whether vv contains a '+' with strings.Contains for the plus case, and apply the same cheaper check to the '-' case.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
trinodb__trino-go-client__64
trinodb/trino-go-client
64
defect
565ca64bac1a1fc78d2413736a4abf6d9d38e85c
0b3f9a1b00a4870de8344f667b9d1f3c7a2d0dae
Support times better
Add support for full precision of subseconds, so `PARAMETRIC_DATETIME` works properly. Add type wrappers in the manner of `Numeric` for the various date/time data types, so we can avoid casts and not leak the accepted formats to the client.
diff --git a/trino/integration_test.go b/trino/integration_test.go index 7adfd984..0a1d939d 100644 --- a/trino/integration_test.go +++ b/trino/integration_test.go @@ -422,7 +422,7 @@ func TestIntegrationArgsConversion(t *testing.T) { AND col_big = ? AND col_real = cast(? as real) AND col_double = cast(? as ...
8
6
4
[{"id": "G0", "claim": "Creating a Date from a time.Time and serialising it silently drops the time part, so the driver should prevent that - by asserting against truncation and/or by providing dedicated constructors that take the date parts explicitly.", "category": "correctness", "verdict": "supported", "priority": "...
null
trinodb__trino-go-client__66
trinodb/trino-go-client
66
defect
565ca64bac1a1fc78d2413736a4abf6d9d38e85c
a619ec532e4f3fbf6df377aa60e1ae60a15de3ad
Don't panic if driverRows.Next is called after Close
Previously this would panic with an index out of range error. Which was misleading as the indexing itself wasn't the problem. The problem was that fetch returns a `nil` error if the error channel was closed, which led the `Next` function to believe there was more data ready to be processed, but this was not the case. ...
diff --git a/trino/integration_test.go b/trino/integration_test.go index 7adfd984..28bb3051 100644 --- a/trino/integration_test.go +++ b/trino/integration_test.go @@ -17,8 +17,10 @@ package trino import ( "context" "database/sql" + "database/sql/driver" "errors" "flag" + "io" "log" "net/http" "os" @@ -52...
3
3
0
[{"id": "G0", "claim": "The t.Fatalf message for the second rows.Next call in TestIntegrationQueryNextAfterClose should say that io.EOF was expected.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The t.Fatalf message for the first rows.Next call in Tes...
null
trinodb__trino-go-client__7
trinodb/trino-go-client
7
defect
a7bb143406717b9914e99f0d7d207b3793a2a242
1270ae0a1570fa6bc87e34aa32a6cd6aaf798d15
Fix serializing user name
Issue related to https://github.com/prestosql/presto-go-client/issues/6 where hidden args should not be serialized. ### before ![image](https://user-images.githubusercontent.com/25147023/89846403-1c19aa00-dbbc-11ea-8edb-242fd399372e.png) ### after ![image](https://user-images.githubusercontent.com/25147023...
diff --git a/presto/presto.go b/presto/presto.go index 6c4b613b..24f63eea 100644 --- a/presto/presto.go +++ b/presto/presto.go @@ -565,7 +565,7 @@ func (st *driverStmt) QueryContext(ctx context.Context, args []driver.NamedValue return nil, err } if arg.Name == prestoUserHeader { - st.user = s + st.us...
2
2
1
[{"id": "G0", "claim": "Add a test using `SELECT current_user`, which returned the quoted username before this commit, to cover the user-name serialization change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Change `TestQueryWithJustUserHeader` to qu...
null
trinodb__trino-go-client__77
trinodb/trino-go-client
77
defect
dd1bcf80930139ad898b49ac464ba785582c9349
88ecfbb141df498c754ad4c69b2c12a86b7d58d1
Add support to pass ssl certificate as a string, not a file path
Supersedes #73, applied review comments. This is required to use this driver in https://github.com/starburstdata/grafana-trino/ and get that plugin certified by Grafana. Grafana now does not allow plugins to make any file system calls, so we need a way to pass a certificate as a value, instead of saving it to a temp...
diff --git a/trino/trino.go b/trino/trino.go index 98af17cb..03f6f45a 100644 --- a/trino/trino.go +++ b/trino/trino.go @@ -135,6 +135,7 @@ const ( kerberosRealmConfig = "KerberosRealm" kerberosConfigPathConfig = "KerberosConfigPath" SSLCertPathConfig = "SSLCertPath" + SSLCertConfig = "SSLCe...
1
1
1
[{"id": "G0", "claim": "FormatDSN should enforce that SSLCert and SSLCertPath are mutually exclusive, since when both are configured the code currently picks the path, which is not obvious behaviour.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trinodb__trino__26195
trinodb/trino
26,195
defect
1c54e8b3d4a46bc40b68ecfc29da1bbd871e53a6
2ee6a9af7428ca0fe1c38a00d63ecaffdfb6f09f
Added group name case conversion
## Description Added the property `group-provider.group-case` to `etc/group-provider.properties` with the following configuration options: * `keep` * `lower` * `upper` ## Additional context and related issues This change allows conversion of group names to uppercase and lowercase, to allow integration with Apac...
diff --git a/core/trino-main/src/main/java/io/trino/security/GroupProviderManager.java b/core/trino-main/src/main/java/io/trino/security/GroupProviderManager.java index ae2ce87ab17f..8c3429bc1fe5 100644 --- a/core/trino-main/src/main/java/io/trino/security/GroupProviderManager.java +++ b/core/trino-main/src/main/java/i...
7
6
1
[{"id": "G0", "claim": "Do not use `final` for the local variable in GroupProviderManager.loadConfiguredGroupProvider (drop the `final` modifier on groupCase).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Collect the transformed group names wi...
null
trinodb__trino__26979
trinodb/trino
26,979
defect
aac4f0ccf9646f136b0826a69aec38c9038b416d
31211787507a014e68c12251cb9167a9a1009fbf
Fix SHOW CREATE SCHEMA failure due to unsupported properties
## Description Fixes #24744 ## Release notes ```markdown ## Iceberg * Fix failure when executing `SHOW CREATE SCHEMA` on a schema with unsupported properties with REST, Glue or Nessie catalog. ({issue}`24744`) ``` ## Summary by Sourcery Filter out unsupported namespace properties to avoid failures ...
diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/glue/TrinoGlueCatalog.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/glue/TrinoGlueCatalog.java index a2760ee91897..22ef11834d68 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/glue...
1
1
0
[{"id": "G0", "claim": "The property-filtering check in TrinoNessieCatalog.loadNamespaceMetadata should be named, e.g. a helper/method that says \"isSupportedProperty\", instead of an inline key equality test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trinodb__trino__27332
trinodb/trino
27,332
defect
1ffab242dec029e48e21f7a8b51fb195e81180d6
d00e9f66af79467e13da5b4a7ca05fdf4a775c0d
Report written rows and size by MERGE statement
## Description Fixes #25922 <img width="1196" height="243" alt="Screenshot 2025-11-17 at 10 07 08" src="https://github.com/user-attachments/assets/0be3f778-dbef-4d9b-9d99-88a428158e60" /> ## Release notes (x) This is not user-visible or is docs only, and no release notes are required.
diff --git a/core/trino-main/src/main/java/io/trino/execution/QueryStats.java b/core/trino-main/src/main/java/io/trino/execution/QueryStats.java index 370e35978c1d..07b50bf3fbb9 100644 --- a/core/trino-main/src/main/java/io/trino/execution/QueryStats.java +++ b/core/trino-main/src/main/java/io/trino/execution/QueryStat...
7
5
3
[{"id": "G0", "claim": "The new writtenBytes field is declared between final variables, violating the non-final-after-final field ordering.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "writtenBytes should track only physical written bytes avai...
null
trinodb__trino__27518
trinodb/trino
27,518
defect
acc4a4af4cec116d4e21c6de770c2f79aec49c47
a36aed3b27cd790249b739e7141505022ce33fa9
[Exasol] Re-enable Exasol testsuite, update Exasol testcontainers
## Description This pull request: - Re-enables Exasol product tests - Updates the used Exasol test container to a newer more stable container that fixes a number of startup issues. - Disabled the usage of rsyslogd (that pollutes the logs and slows down container startup). Closes #27339 ## Additional context...
diff --git a/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java b/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java index b3021a8b2f43..a8c362fc3b2f 100644 --- a/plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java +++ b/plugin/...
1
1
0
[{"id": "G0", "claim": "Add a code comment explaining what setting COSLWD_ENABLED=1 is for.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trinodb__trino__27580
trinodb/trino
27,580
defect
380514bd3202f2f544c7cda11d81cdc1c1533f59
a22fe228f61bd3464b88f9ecf59d32d0eedf4cad
Migrate trino-parquet tests from TestNG to JUnit
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description Migrate...
diff --git a/lib/trino-parquet/pom.xml b/lib/trino-parquet/pom.xml index 96b17a9ae787..e23809218b53 100644 --- a/lib/trino-parquet/pom.xml +++ b/lib/trino-parquet/pom.xml @@ -227,12 +227,6 @@ <artifactId>jmh-generator-annprocess</artifactId> <scope>test</scope> </dependency> - - ...
1
1
0
[{"id": "G0", "claim": "Use a static import for TestInstance.Lifecycle.PER_CLASS instead of the fully qualified name on the added @TestInstance annotation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
trinodb__trino__27617
trinodb/trino
27,617
defect
4fadbf3939041afa5f784d243b4cccb9c08b7056
581a0841147a6a1ce57375763187d61c6a664bbe
Reduce memory pressure due to highly nested fields in Iceberg
## Description The `IcebergUtil.getProjectedColumns` method generated a list of #projected-columns + #nested-fields. Each entry contains the base ColumnIdentity with children & childFieldIdToIndex. If the table contains a column with 10000 fields, the method creates a large object (1 column + 10000 fields) * (2 c...
diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java index 3d0985987c05..91a38a65f82e 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadata.java +++ b/plugin/trino-...
6
3
0
[{"id": "G0", "claim": "Build projectedIds without the unnecessary intermediate collection - use Guava's toImmutableSet() (or pass the streams straight to the ImmutableSet builder) instead of .collect(Collectors.toSet()) inside the addAll calls.", "category": "performance", "verdict": "supported", "priority": "P2", "sc...
null
trinodb__trino__27756
trinodb/trino
27,756
defect
2c774ef26ef3da36e6ef6ad3adf89dcb5f4d1e99
257ebcda1e60d47085353bd258195fd460df0144
Correctly remove position delete files on optimize
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description Fixes #...
diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitSource.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitSource.java index 689d2560c70b..5e97e40cfe2e 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitSource.java +++ b/plug...
4
2
0
[{"id": "G0", "claim": "The test needlessly uppercases `partitioning` in the CREATE TABLE statement of testOptimizeCleansUpDeleteFiles; please revert that change.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the short-ret...
null
trinodb__trino__27999
trinodb/trino
27,999
defect
db3f1d4c8e60e086a4cd5b3cd137f445e1497346
c161a30fcbd0e921c9af8f8d1d6692056eed50bc
Support `DESCRIBE OUTPUT (subquery)` syntax
## Description Add support for `DESCRIBE OUTPUT` with inline queries, allowing users to describe query output columns without creating a prepared statement first. Previously, users had to use a two-step process: ```sql PREPARE my_query FROM SELECT * FROM nation; DESCRIBE OUTPUT my_query; ``` Now they can use t...
diff --git a/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 b/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 index 02b83dbdb7fe..c61f9551f878 100644 --- a/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 +++ b/core/trino-grammar/src/main/antlr4/io/trino/grammar/...
10
9
4
[{"id": "G0", "claim": "The new documentation sentence is grammatically incorrect and does not match the example (it says the output columns are expressions while the example is SELECT *); reword it and/or update the example.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
trinodb__trino__28583
trinodb/trino
28,583
defect
0d77b81909774348fd09f92190cfe163855053c3
48ef3e6f2bd846a4bd5c82b0084256ea8bb3c8e1
Support table optimization with OR predicates on partitioned timestamp columns
Fix table optimization with OR predicates on partitioned timestamp columns ALTER TABLE EXECUTE OPTIMIZE with OR predicates using date() on timestamp with time zone columns failed with "Unexpected FilterNode found in plan". For example: ALTER TABLE t EXECUTE OPTIMIZE WHERE date(c2_ts) BETWEEN DATE '2025-07-01...
diff --git a/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/expression/ConnectorExpressions.java b/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/expression/ConnectorExpressions.java index 4427b04bf77a..0d89359ba23a 100644 --- a/lib/trino-plugin-toolkit/src/main/java/io/trino/plugin/base/expre...
5
4
3
[{"id": "G0", "claim": "The initial OR handling in disjunctsToTupleDomain may be too simple to be correct: it always combines the disjuncts' TupleDomains with columnWiseUnion, which can be a proper superset of the strict union, instead of mirroring DomainTranslator's exactness logic.", "category": "correctness", "verdi...
null
trinodb__trino__28632
trinodb/trino
28,632
defect
594d6c2af7aadf4e9468449a6b2798a90ddced92
4627910fec746fee980dafbf8ebe26e071583771
Fix failing bucket number parsing in transactional Hive tables
## Description Given a hive table backed by multiple files (for example `part1.csv, part2.csv`). The table was created in Hive with the default `TBLPROPERTIES`, resulting in `'transactional'='true', 'transaction_properties'='insert_only'`. Accessing this table via Trino results in the exception `Cannot get bucket numb...
diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/BackgroundHiveSplitLoader.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/BackgroundHiveSplitLoader.java index f7f6236ead7c..fd460d8c4b14 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/BackgroundHiveSplitLoader.java +++ b/p...
3
2
2
[{"id": "G0", "claim": "Add an integration test that creates such a table using Hive and ensures Hive properly treats it as bucketing, since the reviewer doubts such a table would be valid in Hive.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new ...
null
trinodb__trino__28775
trinodb/trino
28,775
defect
d82519245e82fa23a6ea608e99417a566ae52cff
ecf9d87ceb89cebc5cf73fa14a4a186ed4f7ca16
Use table credentials for reading from Iceberg `table_changes` & `$files`
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description Fol...
diff --git a/core/trino-main/src/main/java/io/trino/execution/SqlStage.java b/core/trino-main/src/main/java/io/trino/execution/SqlStage.java index 4f44e1512201..5044631344f7 100644 --- a/core/trino-main/src/main/java/io/trino/execution/SqlStage.java +++ b/core/trino-main/src/main/java/io/trino/execution/SqlStage.java @...
7
5
2
[{"id": "G0", "claim": "The default getSplitProcessor implementation should validate that tableCredentials is empty and throw when credentials are passed, before delegating to the old overload.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "Update t...
null
trinodb__trino__28783
trinodb/trino
28,783
defect
88e3078ddfef679155fb55990ecc69b2d9bda8cf
0d64d608a53db7ac45597fa3d91b423792b10f29
Allow to store externalAuthenticationToken in SYSTEM Cache
(in dotfiles), so it can be reused between processes, without requiring authentication. This may be helpful in case different CLI are run from the same machine. <!-- Mark the appropriate option with an (x). Propose a release note if you can. More info at https://trino.io/development/process#release-note --> ## Re...
diff --git a/client/trino-client/src/main/java/io/trino/client/auth/external/KnownToken.java b/client/trino-client/src/main/java/io/trino/client/auth/external/KnownToken.java index 240af9075763..01e0d7304713 100644 --- a/client/trino-client/src/main/java/io/trino/client/auth/external/KnownToken.java +++ b/client/trino-...
4
3
2
[{"id": "G0", "claim": "With SYSTEM caching, a user cannot authenticate as two different users in two different CLIs because the persisted token is shared across processes.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation changes covering t...
null
trinodb__trino__28795
trinodb/trino
28,795
defect
a3e18236035bb384b35776fc8a369d31da837d44
7586ed9064d4abffbf374d8913a1cf5a75adaa45
Scan only required fields when reading Iceberg manifests
## Description - Fixes #28787 ## Release notes (x) This is not user-visible or is docs only, and no release notes are required.
diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitSource.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitSource.java index a9e1e84fe2d8..7ecd446d8660 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitSource.java +++ b/plug...
3
2
0
[{"id": "G0", "claim": "The metric should be tested through normal query execution (or in TestIcebergSplitSource) instead of calling the split manager directly in TestIcebergSplitManager.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The metrics should...
null
trinodb__trino__28833
trinodb/trino
28,833
defect
b5a4f5aa1da3b1bb5f23aebb424ab9a4db211dae
102493e73482da6904311d34887fb5b74fcc9bbb
Do not fail when HMS returns new stats types
HMS API can evolve. Adding new statistics type should be a backwards compatible change. Inability to infer statistics for such column is better than failing. - would fix https://github.com/trinodb/trino/issues/28330 (unless https://github.com/trinodb/trino/pull/28296 is merged earlier)
diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/thrift/ThriftMetastoreUtil.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/thrift/ThriftMetastoreUtil.java index ec0e09a50375..6740bd28be99 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/thrift...
2
1
0
[{"id": "G0", "claim": "Add test coverage for the new unsupported-statistics fallback in io.trino.plugin.hive.metastore.thrift.TestThriftMetastoreUtil.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The warn log for unsupported column statistics data sh...
null
trinodb__trino__28855
trinodb/trino
28,855
defect
b00408e00390f634b699278f48c759430e35e08b
4eeadf81784ccd8a9fa6c3b841293891a3852099
Support Azure vended credentials in Iceberg REST catalog
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description This ...
diff --git a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuth.java b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuth.java index 3d6da6e4ed99..94a86a640f02 100644 --- a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuth.java +++ b/lib/tri...
12
8
1
[{"id": "G0", "claim": "The sasTokens field should be copied with ImmutableMap.copyOf(sasTokens) instead of Map.copyOf(requireNonNull(...)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Map.Entry should be imported directly (as in the linked u...
null
trinodb__trino__28859
trinodb/trino
28,859
defect
442557460b901f3b0cc37312c1d5a485b5c38bae
2c93f3a310ca2a033175702b443918c5c2868f3c
Add hive support for ESRI GeoJson
## Description Support tables created with Row format `com.esri.hadoop.hive.serde.GeoJsonSerDe` and `com.esri.json.hadoop.EnclosedGeoJsonInputFormat`. Originally started with PR https://github.com/trinodb/trino/pull/28592 but this PR is based on the JTS branch by @dain https://github.com/trinodb/trino/pull/27881 ...
diff --git a/docs/src/main/sphinx/connector/hive.md b/docs/src/main/sphinx/connector/hive.md index 76192dc548e9..fac97796f954 100644 --- a/docs/src/main/sphinx/connector/hive.md +++ b/docs/src/main/sphinx/connector/hive.md @@ -57,6 +57,7 @@ In the case of serializable formats, only specific more [details about the T...
7
4
1
[{"id": "G0", "claim": "In TestGeoJsonReader.readAll the cached `closed` flag can miss an unexpected close within the current iteration; assert reader.isClosed() directly after each successful next(...) call.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
trinodb__trino__28865
trinodb/trino
28,865
defect
442557460b901f3b0cc37312c1d5a485b5c38bae
879a9fee4fa8c1e1840289d83bcc6e454c069614
Update HiveMetadata to respect session timestamp precision when build…
- Fix https://github.com/trinodb/trino/issues/28835 Using session timestamp precision when building columnTypes <!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact...
diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadata.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadata.java index d3d1b5716084..7b28516ecb80 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadata.java +++ b/plugin/trino-hive/src/main/java/io/trino...
1
1
0
[{"id": "G0", "claim": "The newly added test is labelled a regression test for issue 28835 but, as far as the reviewer tested locally, it passes without this PR's change, so it does not fail before the fix as a regression test should.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
trinodb__trino__28868
trinodb/trino
28,868
defect
0d60a29d76e37aff0f61d6bf6657e1fe88d35f5b
da0570bd00b38fe3dfa69346cdfdb6510038dcd9
Add support for cast between NUMBER and JSON
Implements cast operators to convert between NUMBER and JSON types, following the same pattern as existing DECIMAL-JSON casts. NUMBER to JSON conversion: - Regular numbers are converted to JSON numbers - NaN, +Infinity, -Infinity are converted to JSON strings JSON to NUMBER conversion: - JSON numbers (integer...
diff --git a/core/trino-main/src/main/java/io/trino/operator/scalar/JsonOperators.java b/core/trino-main/src/main/java/io/trino/operator/scalar/JsonOperators.java index ee017d88e23b..4d55bd501d88 100644 --- a/core/trino-main/src/main/java/io/trino/operator/scalar/JsonOperators.java +++ b/core/trino-main/src/main/java/i...
3
2
0
[{"id": "G0", "claim": "The INVALID_CAST_ARGUMENT error thrown by castToNumber when trailing tokens remain does not include the problematic input, which the reviewer dislikes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "castFromNumber writes ...
null
trinodb__trino__28871
trinodb/trino
28,871
defect
5e1c68640bd4dfd0bed6af983cd9a90fcdf7d259
6dc29022bd40fcced0ac49b607cd057489b12667
Propagate split source metrics to QueryInputMetadata
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description Fixes htt...
diff --git a/core/trino-main/src/main/java/io/trino/event/QueryMonitor.java b/core/trino-main/src/main/java/io/trino/event/QueryMonitor.java index 7634f69f5636..02075e4ff852 100644 --- a/core/trino-main/src/main/java/io/trino/event/QueryMonitor.java +++ b/core/trino-main/src/main/java/io/trino/event/QueryMonitor.java @...
1
1
1
[{"id": "G0", "claim": "A test should be added in TestEventListenerBasic covering the pull request's change (the split-source-metrics propagation).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trinodb__trino__28873
trinodb/trino
28,873
defect
5e1c68640bd4dfd0bed6af983cd9a90fcdf7d259
1c90d0b81f3dc69e9bfef39ebdd8433835bece24
Map ClickHouse high-precision DECIMAL to Trino NUMBER
## Description Trino's `DECIMAL` has precision of 1-38 decimal digits. ClickHouse's `DECIMAL` supports precision up to 76 digits with scale up to 30. Previously it was impossible to reasonably map high precision ClickHouse `DECIMAL` to Trino. Mapping required agreeing to lossy conversion using `decimal-mapping=ALLOW...
diff --git a/docs/src/main/sphinx/connector/clickhouse.md b/docs/src/main/sphinx/connector/clickhouse.md index 4af9cb75ddf8..ab8aa20279ae 100644 --- a/docs/src/main/sphinx/connector/clickhouse.md +++ b/docs/src/main/sphinx/connector/clickhouse.md @@ -217,8 +217,8 @@ to the following table: - `DOUBLE` - `DOUBLE` i...
5
5
0
[{"id": "G0", "claim": "The TODO decimal-pushdown comment in numberColumnMapping() should sit just before the DISABLE_PUSHDOWN argument instead of above the return statement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added comment line ...
null
trinodb__trino__28898
trinodb/trino
28,898
defect
da91faf8bbc52bbe42bff1ef83c4a2b6a7bdd678
bf4533f0644f87dcb4fda32dccd8fbc0278bfda0
Recognize non-fallible division and modulo operator
Current logic for division and modulo on integer types assumed it can always fail, which prohibited pushdown of filter expressions which involved those operators. With new logic we relax the logic so if we see that divisor is constant and non-zero we asume that operator will never fail and pushdown is possible. <!-...
diff --git a/core/trino-main/src/main/java/io/trino/sql/ir/IrExpressions.java b/core/trino-main/src/main/java/io/trino/sql/ir/IrExpressions.java index 23259b5899cb..93678c29a25f 100644 --- a/core/trino-main/src/main/java/io/trino/sql/ir/IrExpressions.java +++ b/core/trino-main/src/main/java/io/trino/sql/ir/IrExpression...
6
6
4
[{"id": "G0", "claim": "Zero detection in canCauseDivisionByZero should not rely on Long#equals with a possibly non-Long value nor quietly assume the decimal value is an Int128; the zero test should be made safe for every numeric type.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
trinodb__trino__28901
trinodb/trino
28,901
defect
da91faf8bbc52bbe42bff1ef83c4a2b6a7bdd678
4d1e862fd32307670c821a3e010e46c9b17df739
Add support to NUMBER to Python UDFs
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description <!-...
diff --git a/plugin/trino-functions-python/src/main/java/io/trino/plugin/functions/python/TrinoTypes.java b/plugin/trino-functions-python/src/main/java/io/trino/plugin/functions/python/TrinoTypes.java index ef72d30550a6..95c825e8462d 100644 --- a/plugin/trino-functions-python/src/main/java/io/trino/plugin/functions/pyt...
6
5
1
[{"id": "G0", "claim": "In javaToBinary the BigDecimalValue case should use a record deconstruction pattern instead of an unused binding name, i.e. `case TrinoNumber.BigDecimalValue(BigDecimal bigDecimal) ->`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
trinodb__trino__28913
trinodb/trino
28,913
defect
68bcca2516a1034042a0915d062410d2c6b87336
4bdd81705704eeb31302399c8167cbf73a961e6f
Remove unused write type from `DeltaLakeTableHandle`
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description The wri...
diff --git a/plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java b/plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java index 811b7161435b..00aa03b1e14d 100644 --- a/plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.jav...
1
1
1
[{"id": "G0", "claim": "Consider replacing the single-value `WriteType` enum in `DeltaLakeTableHandle` with a boolean field with a meaningful name.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trinodb__trino__28921
trinodb/trino
28,921
defect
9cb6ee529ad845c33ad095be81042d34b69547f9
f4d9fba019fd721ca6a3a8c4718f820eb7a90ba9
Add support to NUMBER to Python UDFs
Resubmitted after accidental merge ## Description - Requires https://github.com/trinodb/trino-wasm-python/pull/11 to correctly pass NaN and Infinity values ## Release notes ( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a rele...
diff --git a/plugin/trino-functions-python/src/main/java/io/trino/plugin/functions/python/TrinoTypes.java b/plugin/trino-functions-python/src/main/java/io/trino/plugin/functions/python/TrinoTypes.java index ef72d30550a6..11701ef6b495 100644 --- a/plugin/trino-functions-python/src/main/java/io/trino/plugin/functions/pyt...
5
5
2
[{"id": "G0", "claim": "NUMBER should be handled as its own dedicated type instead of the pull request mapping StandardTypes.NUMBER onto TrinoType.DECIMAL in singletonType, as raised in the linked discussion.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
trinodb__trino__28972
trinodb/trino
28,972
defect
abbf1d793667114f0bb260b0e23c2b59192ba047
87175c8ce8043b39df454069e999571c84e89b53
Fix failure when column names contain uppercase letters in table procedures
## Description 1536db9 introduced this bug. The getColumnHandles method may return uppercase keys, while getTableMetadata internally lowercases column names. * Fixes #28970 ## Release notes ```markdown ## General, Iceberg, Delta Lake * Fix failure when executing table procedures on tables with uppercase c...
diff --git a/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java b/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java index e5541273ee9b..8bf5ab4bfeec 100644 --- a/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java +++ b/core/trino-spi/src/main/java...
2
1
0
[{"id": "G0", "claim": "Question whether ConnectorMetadata needs a default implementation of getColumnHandlesForTableExecute for table procedures at all — it could just throw instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a query to testOpti...
null
trinodb__trino__28988
trinodb/trino
28,988
defect
ed4623a0a2b1f955c83ca42acb19272b3d76047b
95d919435f28422c9214945b1562f747ed23a973
Make `partitionValues` serializable for `IcebergSplit`
<!-- Thank you for submitting a pull request! Find more information at https://trino.io/development/process.html, at https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md and contact us on #core-dev in Slack. --> <!-- Provide an overview for maintainers and reviewers. --> ## Description The `Co...
diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergBucketFunction.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergBucketFunction.java index 7f513814a408..b88b4506de64 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergBucketFunction.java +...
1
1
0
[{"id": "G0", "claim": "IcebergSplit now carries both the new partitionValues and the old partitionDataJson, and the reviewer asks to get rid of partitionDataJson by using partitionValues instead since having both feels redundant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
trinodb__trino__28992
trinodb/trino
28,992
defect
448ff15ebba64d377871051abb7d08ec66674b70
c15ccff3f980338746549a2182a8170d08e42863
Allow distributed table procedures to output metrics in result
## Description Allow distributed table procedures to output metrics in result. Iceberg OPTIMIZE procedure returns the output below: ```sql trino> ALTER TABLE iceberg.tpch.region EXECUTE optimize; ALTER TABLE EXECUTE metric_name | metric_value ----------------------------+-------------- rew...
diff --git a/core/trino-main/src/main/java/io/trino/execution/TableExecuteContext.java b/core/trino-main/src/main/java/io/trino/execution/TableExecuteContext.java index 5f73ce670ae5..c113ffcc5e38 100644 --- a/core/trino-main/src/main/java/io/trino/execution/TableExecuteContext.java +++ b/core/trino-main/src/main/java/i...
9
1
0
[{"id": "G0", "claim": "Changing the public ConnectorMetadata.finishTableExecute return type from void to Map<String, Long> breaks binary compatibility, so connectors compiled against the old signature will fail with NoSuchMethodError at runtime; keep the change additive by adding a separate metrics-returning method th...
null
trinodb__trino__29016
trinodb/trino
29,016
defect
5a1c2791be156573684f525427a32c42dd4c72f5
3690351b5e97f435367b707f3e33c47ddee32352
Add CPU and scheduled time timeline to operator metrics
## Description Introduces ResourceUsageTimeSeriesRecorder, a fixed-size bucketed sampler that doubles its bucket width as operator execution grows. CPU and wall time are recorded across addInput, getOutput, and finish phases, merged into a single snapshot, and surfaced as "CPU and scheduled time usage over time" in op...
diff --git a/core/trino-main/src/main/java/io/trino/operator/OperationTimer.java b/core/trino-main/src/main/java/io/trino/operator/OperationTimer.java index fe610e97480d..f2a1573f5eda 100644 --- a/core/trino-main/src/main/java/io/trino/operator/OperationTimer.java +++ b/core/trino-main/src/main/java/io/trino/operator/O...
5
3
1
[{"id": "G0", "claim": "The startNanos-shift logic in the bucket-expansion loop is unclear and should be explained in a comment (startNanosOffset will be either 0 or the previous bucket width).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Bucket...
null
trinodb__trino__29042
trinodb/trino
29,042
defect
5a1c2791be156573684f525427a32c42dd4c72f5
484e8d85beb5f9488da399cf6cbfc46bc0bbf7b0
Improve compatibility of filesystem exchange with Azure with HNS enabled
<!-- Mark the appropriate option with an (x). Propose a release note if you can. More info at https://trino.io/development/process#release-note --> ## Release notes ( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c63e0bb139b5..5a209351502e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -486,6 +486,7 @@ jobs: - { modules: plugin/trino-druid } - { modules: plugin/trino-duckdb } - { modules: plugin...
3
3
1
[{"id": "G0", "claim": "deleteRecursively/listFilesRecursively may be called with URIs outside the configured base directories while the storage believes the account is HNS, and the author agreed the code should verify that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
trinodb__trino__29050
trinodb/trino
29,050
defect
5a1c2791be156573684f525427a32c42dd4c72f5
61e9e0f1db6f49aff878ce2224b5f4f74d836abc
Remove dead code from LocalExecutionPlanner.visitTableScan
Before the changes, the `visitTableScan` helper takes `filterExpression` which is effectively always TRUE. Additionally, the call from `visitFilter` is generally unreachable. There should be no FilterNode with trivial static condition and no dynamic filters. The commit removes the unreachable call and inlines now redun...
diff --git a/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java b/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java index 5d8fe6b24de6..9a351d14237f 100644 --- a/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java +++ b/core/trino-main/src...
1
1
0
[{"id": "G0", "claim": "The DynamicFilter field should be removed from TableScanOperatorFactory/TableScanOperator, since dynamicFilter is now always EMPTY and dynamic filters always land in the visitScanFilter... code path via a FilterNode on top of the scan.", "category": "design", "verdict": "supported", "priority": ...
null
trinodb__trino__29053
trinodb/trino
29,053
defect
b343ebdff19b0c4306619a8b6ef9ea6d72c35ffd
9ca91f46dce73124a661463208bd8ec132aa3187
Cleanup deprecated APIs
## Release notes ( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. (x) Release notes are required, with the following suggested text: ```markdown ## General * Support binding parameters in WITH SESSION, SET ...
diff --git a/core/trino-main/src/main/java/io/trino/connector/informationschema/InformationSchemaMetadata.java b/core/trino-main/src/main/java/io/trino/connector/informationschema/InformationSchemaMetadata.java index 3e320670a222..4fbedbb733f0 100644 --- a/core/trino-main/src/main/java/io/trino/connector/informationsch...
6
4
3
[{"id": "G0", "claim": "The change makes `?` parameters work in WITH session property values and there should be a test for that in PropertyUtil's path.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change makes `?` parameters work in SET SESSION p...
null
trinodb__trino__29058
trinodb/trino
29,058
defect
5a1c2791be156573684f525427a32c42dd4c72f5
73f1826cdc895d4117b420f774fbc25fc8730c93
Add TestExamplePlugin
## Description The current implementation throws an exception, however I'm not sure why it happens. This is also the only occurrence of a `.bindJsonMap(String.class, listJsonCodec(...)` in the whole codebase... The code seems to be there for quite a while, but in the current build it fails to load. I've added a tes...
diff --git a/plugin/trino-example-http/src/main/java/io/trino/plugin/example/ExampleModule.java b/plugin/trino-example-http/src/main/java/io/trino/plugin/example/ExampleModule.java index e91a9e2f0269..00e9399a57da 100644 --- a/plugin/trino-example-http/src/main/java/io/trino/plugin/example/ExampleModule.java +++ b/plug...
1
1
1
[{"id": "G0", "claim": "The PR's ExampleModule change (binding the map JSON codec via a TypeLiteral) is an incorrect fix; the proper fix is airlift/airlift#1888.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
trinodb__trino__29079
trinodb/trino
29,079
defect
ec6f0e074523fa2438d96e4e15b2fdec2c4d1664
b50edc75d2391789819d3857f92665dbb6e2161b
Fix DESCRIBE OUTPUT with versioned tables
## Description - Fixes #29077 ## Release notes ```markdown ## General * Fix failure when executing `DESCRIBE OUTPUT` with versioned tables. ({issue}`29077`) ```
diff --git a/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java b/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java index cac970de0786..d742ee0f4db5 100644 --- a/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java +++ b/core/trino-main/src/main/jav...
3
2
2
[{"id": "G0", "claim": "The reviewer asks whether DESCRIBE OUTPUT exposes the table version, questioning the design of the new test.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When the table version is passed as a parameter, DESCRIBE OUTPUT should fa...
null
triplea-game__triplea__13230
triplea-game/triplea
13,230
defect
d3c820f68e9316942f07d57f0df4ccc5de8efca6
44085393fbbf54352842c8006064ec691dd87dac
Remove the char limit of 40 in field "To:" under "Automatically send"
This PR aims to fix issue #13063 It should remove the char limit of 40 in field "To:" under "Automatically send". ## Notes to Reviewer Althought the commit allowed field "To:" to take input the emails with more than 40 char, I couldn't check the functionality. Neither the original code nor the updated code works...
diff --git a/game-app/domain-data/src/main/java/org/triplea/domain/data/LobbyConstants.java b/game-app/domain-data/src/main/java/org/triplea/domain/data/LobbyConstants.java index 5840353e516..a39d9ae60ac 100644 --- a/game-app/domain-data/src/main/java/org/triplea/domain/data/LobbyConstants.java +++ b/game-app/domain-da...
17
11
2
[{"id": "G0", "claim": "The Help window may need updates because the tab/field names it shows (\"Login\", \"Password\", \"Host\", \"Post\") appear not to match the actual UI labels (\"Email Username\", \"Email Password\", \"SMTP Server\", \"Port\").", "category": "documentation", "verdict": "uncertain", "priority": "P3...
null
triplea-game__triplea__13686
triplea-game/triplea
13,686
defect
0a4ca8cafc830b07c4397ec6a48ddfd5b4047a5a
639add7bc051cbb78d86188c8b14d637b4dd2f6d
Unit: new PropertyName subclass for property string
Unit: new PropertyName subclass for property string ## Notes for Reviewer I came across some code wondering why this string name is in Unit and realized it is due to the string being a property name. To make this clear in the code, I created the helper utility class that should not be instantiated (hint from a clea...
diff --git a/game-app/game-core/src/main/java/games/strategy/engine/data/GameDataEvent.java b/game-app/game-core/src/main/java/games/strategy/engine/data/GameDataEvent.java index b6dae5bc959..caf4511418b 100644 --- a/game-app/game-core/src/main/java/games/strategy/engine/data/GameDataEvent.java +++ b/game-app/game-core...
1
1
0
[{"id": "G0", "claim": "The PropertyName string-constant utility class should be converted to an enum whose constants carry the property string values, as suggested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
triplea-game__triplea__13704
triplea-game/triplea
13,704
defect
903aa896f7d7541ffe87dd9cd3ce7ad40e83fbc5
0b3e73af221336655433a2260bb8a2571d65a844
Add annotation Nonnull for territory parameters
## Notes for Reviewer Currently it is often not clear whether `Territory` variables/parameters/attributes can be `null` or not. The goal is to finally have it clear when the following general rules are enforced: 1. Methods will not return `null`, but if needed `Optional<Territory>` 2. Parameters will never should no...
diff --git a/game-app/game-core/src/main/java/games/strategy/engine/data/GameMap.java b/game-app/game-core/src/main/java/games/strategy/engine/data/GameMap.java index 46221650f2c..c3894a5f9da 100644 --- a/game-app/game-core/src/main/java/games/strategy/engine/data/GameMap.java +++ b/game-app/game-core/src/main/java/gam...
2
2
1
[{"id": "G0", "claim": "Add `Preconditions.checkNotNull(t2)` to GameMap.getDistance(final Territory t1, final Territory t2, final BiPredicate<Territory, Territory> routeCond), since the IDE null-check warnings from the precondition would make the other @Nonnull annotations unnecessary.", "category": "correctness", "ver...
null
triplea-game__triplea__13996
triplea-game/triplea
13,996
defect
935ef9d9d421606317b79385b4cd8449bcdcefba
d606b77d3d1ed1a87bffa25c42288b9b2d447612
Fix ResourceLoader and EngineImageLoader to find image assets in new download location
This fixes the `Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-0"` when running the game via `:game-app:game-headed:run` instead of via the installer. - Adds unit tests for image loading with these types when running headed. - Adds some documentation and...
diff --git a/docs/development/README.md b/docs/development/README.md index eca95d0a156..aef2b2c3cc5 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -135,8 +135,8 @@ save games from loading. ### Assets folder not found This is going to be typically because the working directory is not set...
1
1
0
[{"id": "G0", "claim": "The hardcoded image path strings in the new headed tests should be extracted to centralized constants, or at least a TODO comment should be left noting that future work.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
triplea-game__triplea__14140
triplea-game/triplea
14,140
defect
348fa09ec4f0287e811a82f574354fc1b34661a2
edc24f7d18c4a5358fff30a177132068648ceef1
Create core test fixtures, extract shared code.
This creates test fixtures for the core project, and moves map data loading for tests into them. Documented in the build docs: The `:game-app:game-core` project exposes [Test Fixtures](https://docs.gradle.org/current/userguide/java_testing.html#producing_and_using_test_fixtures_within_a_single_project) to share com...
diff --git a/.github/workflows/upload-game-installers.yml b/.github/workflows/upload-game-installers.yml index 1b23b2253a3..75291e38e1d 100644 --- a/.github/workflows/upload-game-installers.yml +++ b/.github/workflows/upload-game-installers.yml @@ -5,7 +5,7 @@ on: - main paths: - '.github/workflows/u...
2
2
0
[{"id": "G0", "claim": "The manual private constructor throwing IllegalStateException is unnecessary since a Lombok annotation like @UtilityClass exists.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The magic string \"jar\" should be extracted...
null
triplea-game__triplea__14285
triplea-game/triplea
14,285
defect
9f5f86f4ab36bf2892c5d8398b57bdee0cb78f54
4d9a974d7dd9cdc060c4fe957016b1692ba2d34c
refactor(remove guava): Remove guava from java extras
First of a series to try and remove Guava starting from the more isolated modules and working our way up. Of note: removes 'ArgChecker', a thin wrapper that did not see a lot of adoption and in turn also has a guava dependency. Removing this class is extra nice as it helps remove an area of coupling between the swin...
diff --git a/lib/java-extras/src/main/java/games/strategy/engine/framework/system/SystemProperties.java b/lib/java-extras/src/main/java/games/strategy/engine/framework/system/SystemProperties.java index 5443605fc5e..bb15a387952 100644 --- a/lib/java-extras/src/main/java/games/strategy/engine/framework/system/SystemProp...
7
7
3
[{"id": "G0", "claim": "In JMenuItemCheckBoxBuilder, mnemonic is never validated for null (the constructor assigns it directly and the PR removed the previous Preconditions.checkNotNull(mnemonic) from build()) while build() unconditionally calls mnemonic.getInputEventCode(), so a null mnemonic surfaces as a bare NullPo...
null
triplea-game__triplea__14290
triplea-game/triplea
14,290
defect
9f5f86f4ab36bf2892c5d8398b57bdee0cb78f54
ed2181cc5ce66731541b6141a1ea9a73d166376c
feature(Lobby): Auto reconnect to lobby
## Feature In short, we automatically attempt reconnect to lobby if disconnected. Detailed: Updates the lobby window to show a popup when disconnected from the lobby. The popup is not modal so the user can still interact with the game list and copy/paste text. The 'disconnected' popup indicates reconnection att...
diff --git a/game-app/game-core/src/main/java/games/strategy/engine/chat/LobbyChatTransmitter.java b/game-app/game-core/src/main/java/games/strategy/engine/chat/LobbyChatTransmitter.java index ff67eec5497..3b376c45443 100644 --- a/game-app/game-core/src/main/java/games/strategy/engine/chat/LobbyChatTransmitter.java +++...
11
6
5
[{"id": "G0", "claim": "Remove the extra blank line before connectionTerminated(...) in WebSocketConnectionListener, which breaks the surrounding formatting of the interface.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc for runInBa...
null
triplea-game__triplea__14308
triplea-game/triplea
14,308
defect
705635d2236d768a03bf94c5a38c34e13d024966
46b844a1ef7e69bda0043f602c14aab787c824e8
Add Triplea-Version header to non-Feign HTTP requests for PBF
## Notes to Reviewer ### What this changes The four non-Feign HTTP call sites in TripleA — `NodeBbForumPoster`, `NodeBbTokenGenerator`, `MartiDiceRoller`, and `ContentDownloader` — now attach a standard `Triplea-Version` header (matching what the Feign-based lobby clients already send) and a `User-Agent: triplea/<ver...
diff --git a/game-app/game-core/src/main/java/games/strategy/engine/posted/game/pbf/NodeBbForumPoster.java b/game-app/game-core/src/main/java/games/strategy/engine/posted/game/pbf/NodeBbForumPoster.java index 36e36a52a68..129022a0d6d 100644 --- a/game-app/game-core/src/main/java/games/strategy/engine/posted/game/pbf/No...
2
2
2
[{"id": "G0", "claim": "The PR should send version/identifying headers only where there is a specific reason for them — scoping the changes to the NodeBB posting code instead of applying them to every non-Feign HTTP request — and implement via a client builder with default headers set at the client level (HttpProxy sta...
null
tristanisham__zvm__72
tristanisham/zvm
72
defect
6061ebc56871d6c3e58424a4ee0be1495dd764a8
0f06492fff966c8bc391ea5da6a9f6311135ae64
FIX #71: old symlink should be removed on Windows
Seems to be a longer journey 😅 ... just tested version 0.6.2 and unfortunately the old symlink to `.zvm/bin` is not removed, ~~the change to `!errors.Is(err, os.ErrNotExist)` seems to fix it.~~ found `os.Lstat` which checks symbolic links. Maybe there's a more appropriate way to do this? Looks like there's a *ne...
diff --git a/cli/use.go b/cli/use.go index a2d3c68..5aa1789 100644 --- a/cli/use.go +++ b/cli/use.go @@ -8,7 +8,6 @@ import ( "bufio" "errors" "fmt" - "io/fs" "os" "path/filepath" "strings" @@ -40,9 +39,11 @@ func (z *ZVM) setBin(ver string) error { version_path := filepath.Join(z.baseDir, ver) bin_dir ...
2
2
1
[{"id": "G0", "claim": "The new os.Lstat existence check should not parse errors with errors.Is(err, os.ErrExist) (as asked: why back to os.ErrExist instead of fs.ErrExist?) but simply check that the error is nil.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
triton-inference-server__dali_backend__145
triton-inference-server/dali_backend
145
defect
83e020c4cc4ac8ed2e255c49f625adf410d67f5e
cfec31d59d706fbbff0fd4657f1db1339f0150a8
Fix outputs auto-config. Add max_batch_size validation
It fixes handling outputs in auto-config implementation. It differentiates the behavior regarding inputs and outputs. inputs: The inputs in the config file are referenced by they names (they have to match the names given in the pipeline), so they can be freely reordered in the config file. outputs: Names of the...
diff --git a/src/config_tools/config_tools.cc b/src/config_tools/config_tools.cc index 896b677e..7eb6fa7c 100644 --- a/src/config_tools/config_tools.cc +++ b/src/config_tools/config_tools.cc @@ -22,6 +22,8 @@ #include "src/config_tools/config_tools.h" +#include <limits> + namespace triton { namespace backend { na...
10
7
0
[{"id": "G0", "claim": "The error thrown when max_batch_size is below 1 should name the model configuration as the place of the setting instead of the vague \"Missing max_batch_size config.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reading ...
null
triton-inference-server__dali_backend__82
triton-inference-server/dali_backend
82
defect
61f318bdbe54e9c81d19d0fa33df711c9d34e056
4fe4227b87b49048fa334aca8d4c3666576f69da
Enable using DALI plugins
This PR contains an example of using DALI plugins together with DALI backend. Also, some updates were necessary to make this working: * added plugin libs loading * added a parameter, which lists DALI plugins Signed-off-by: szalpal <mszolucha@nvidia.com>
diff --git a/docs/examples/dali_plugin/README.md b/docs/examples/dali_plugin/README.md new file mode 100644 index 00000000..e9b2f447 --- /dev/null +++ b/docs/examples/dali_plugin/README.md @@ -0,0 +1,63 @@ +# DALI plugin with Triton + +This example shows how to use custom operations implemented for DALI +(i.e. DALI plu...
30
29
3
[{"id": "G0", "claim": "The README title should read \"DALI plugins with Triton\" instead of \"DALI plugin with Triton\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The README intro should drop the stilted \"As an example, we use here a custom...
null
triton-inference-server__server__7839
triton-inference-server/server
7,839
defect
d19c6abf85a45133c124222875b5f8d4ea85b094
74492a8b2d2838b3ce06d1bdb60e117941503f9e
feat: ORCA Format KV Cache Utilization in Inference Response Header
#### What does the PR do? This PR adds code to `HTTPAPIServer::GenerateRequestClass::StartResponse` inside `src/http_server.cc` to add both `kv_cache_utilization` and `max_token_capacity` metrics composed from the existing prometheus metrics in TensorRT-LLM Backend's `nv_trt_llm_kv_cache_block_metrics` metric family. ...
diff --git a/README.md b/README.md index 36ef51f279e..7e989dc1f2b 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,8 @@ [![License](https://img.shields.io/badge/License-BSD3-lightgrey.svg)](https://opensource.org/licenses/BSD-3-Clause) ->[!WARNING] ->You are currently on the `main` branch which tracks under-de...
3
3
1
[{"id": "G0", "claim": "Rename the ORCA_HEADER_METRIC_TYPE environment variable to ORCA_METRIC_FORMAT and document its usage, including a link to the ORCA proposal doc.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Enable the ORCA metrics response heade...
null
triton-inference-server__server__7969
triton-inference-server/server
7,969
defect
153ba030f2ce84bdb5621ec8617dd9b71ab3f648
0cdff92cc17ef3e6bf2125077dbd49472806d518
feat: Add graceful shutdown timer to GRPC frontend
#### What does the PR do? <!-- Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.--> This PR adds a shutdown timer to the gRPC endpoint for both infer and streaming infer requests. Inflight requests will be allowed to complete before the timer expires and new...
diff --git a/src/grpc/grpc_server.cc b/src/grpc/grpc_server.cc index 74ec443ae6..1ebda95f27 100644 --- a/src/grpc/grpc_server.cc +++ b/src/grpc/grpc_server.cc @@ -1,4 +1,4 @@ -// Copyright 2019-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// Copyright 2019-2025, NVIDIA CORPORATION & AFFILIATES. All righ...
4
2
1
[{"id": "G0", "claim": "accepting_new_conn_ is read in Process and written on shutdown without synchronization, so a lock may be needed for it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Along with reading requests and returning an error, the ha...
null
triton-inference-server__server__7987
triton-inference-server/server
7,987
defect
d3ee577e403a445fb69db3e8e5a641f9a6765650
db4f890931cea3105661be5f52b6c0dd0992a8cc
test: Add tests for response parameters support for BLS in Python backend
#### What does the PR do? Add tests for response parameters support for BLS in Python backend #### Checklist - [X] PR title reflects the change and is of format `<commit_type>: <Title>` - [X] Changes are described in the pull request. - [X] Related issues are referenced. - [X] Populated [github labels](https://...
diff --git a/qa/L0_backend_python/parameters/response_parameters_bls_test.py b/qa/L0_backend_python/parameters/response_parameters_bls_test.py new file mode 100644 index 0000000000..fad5f6e1c6 --- /dev/null +++ b/qa/L0_backend_python/parameters/response_parameters_bls_test.py @@ -0,0 +1,171 @@ +# Copyright 2025, NVIDIA...
8
7
1
[{"id": "G0", "claim": "The 'import numpy as np' in qa/python_models/response_parameters_bls/model.py is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Text files should keep a newline at the end; the new qa/python_...
null
triton-inference-server__server__8052
triton-inference-server/server
8,052
defect
5a7086958e3498e3f47962d81660c6f28aa89e57
7158843bc3a5e937dbb365c5aab188f937d28fb5
feat: Add OpenAI frontend multi-LoRA model listing
#### What does the PR do? Add support for listing/retrieving vLLM models that has LoRA(s) specified at the backend to OpenAI frontend. #### Checklist - [x] PR title reflects the change and is of format `<commit_type>: <Title>` - [x] Changes are described in the pull request. - [x] Related issues are referenced. ...
diff --git a/python/openai/openai_frontend/engine/triton_engine.py b/python/openai/openai_frontend/engine/triton_engine.py index f49942868cd..de6c1ed2cfc 100644 --- a/python/openai/openai_frontend/engine/triton_engine.py +++ b/python/openai/openai_frontend/engine/triton_engine.py @@ -39,6 +39,7 @@ _create_trtllm_i...
2
1
0
[{"id": "G0", "claim": "The two bare 'except Exception: pass' clauses in the new _get_vllm_lora_names function silently swallow errors with no explanatory comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In _create_model_repository_mock_l...
null
triton-inference-server__server__8078
triton-inference-server/server
8,078
defect
422527d5f009aa2b4fc5a58bee75c26d77b30c90
a90fddb9939333a35a529e437c48f1fb91a10cc9
fix: Fix gRPC cancellation race condition
#### What does the PR do? ### Problem description: This PR fixes a race condition where a cancellation request is received before InferResponseComplete, but the server processes it only after the state has been released, leading to a potential segmentation fault. 1. **Thread A**: Server receives cancellation and p...
diff --git a/qa/L0_request_cancellation/grpc_cancellation_test.py b/qa/L0_request_cancellation/grpc_cancellation_test.py index 7d9331d5f5..7f94fb04b3 100755 --- a/qa/L0_request_cancellation/grpc_cancellation_test.py +++ b/qa/L0_request_cancellation/grpc_cancellation_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# ...
6
4
0
[{"id": "G0", "claim": "The local variable delay_response_complete_exec_sec is defined but never used in the test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rn_prev handling may be unnecessary, since it is unclear in which cases rn_prev...
null