Skip to content

Conversation

wendigo
Copy link
Contributor

@wendigo wendigo commented Sep 30, 2025

Description

Additional context and related issues

Release notes

(X) 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.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Sep 30, 2025
@wendigo wendigo force-pushed the improve-taskid-handling branch from d19344c to 844a94b Compare September 30, 2025 20:25
@github-actions github-actions bot added iceberg Iceberg connector bigquery BigQuery connector labels Sep 30, 2025
@wendigo wendigo changed the title Test: Improve taskid handling Improve QueryId/TaskId handling Sep 30, 2025
@wendigo wendigo force-pushed the improve-taskid-handling branch from 844a94b to 5028e59 Compare September 30, 2025 21:24
Copy link
Member

@pettyjamesm pettyjamesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the cleanup!

pettyjamesm and others added 4 commits October 1, 2025 00:03
Avoids using inline regular expression parsing in favor of explicitly
splitting on the character literal '.'. Also cleans up checkArgument
lines to avoid varargs array allocations.
Previously, TaskId would split and re-parse each part of the identifier
in methods like TaskId#getStageId or TaskId#getQueryId. This made those
operations relatively more expensive but also meant that re-parsing and
allocating a new QueryId instance occurred inside of each MemoryPool
reservation operation- increasing the amount of time spent holding the
memory pool lock.
@wendigo wendigo force-pushed the improve-taskid-handling branch from 5028e59 to bd8e5ba Compare September 30, 2025 22:25
@wendigo wendigo merged commit a455eee into master Oct 1, 2025
212 of 213 checks passed
@wendigo wendigo deleted the improve-taskid-handling branch October 1, 2025 09:55
@github-actions github-actions bot added this to the 478 milestone Oct 1, 2025
@ebyhr
Copy link
Member

ebyhr commented Oct 2, 2025

@wendigo Could you update "Release notes" section?

Comment on lines +234 to +241
<ignore>true</ignore>
<code>java.method.visibilityReduced</code>
<old>method java.lang.String io.trino.spi.QueryId::validateId(java.lang.String)</old>
<new>method java.lang.String io.trino.spi.QueryId::validateId(java.lang.String, java.lang.String)</new>
<oldVisibility>public</oldVisibility>
<newVisibility>package</newVisibility>
<justification>Hidden method that is not used outside of QueryId</justification>
</item>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wendigo This change requires a release note, right?
cc: @martint

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is utility method used internally and while being a part of the SPI it is only used in trino-main so I don't think that it warrants a release note

Copy link
Member

@ebyhr ebyhr Oct 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The internal usage is unrelated in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery BigQuery connector cla-signed iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

4 participants