Skip to content

Conversation

@imnutz
Copy link
Contributor

@imnutz imnutz commented Jun 12, 2025

No description provided.

@imnutz imnutz force-pushed the add_trino_query branch from 23ceff1 to c6f2271 Compare June 12, 2025 02:35
@imnutz imnutz requested a review from tung-vu-td June 12, 2025 03:05
@yuokada yuokada requested a review from Copilot June 12, 2025 06:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for TRINO queries by introducing new factory methods in the TDJobRequest class and updating the TDJob Type enumeration.

  • Added three overloaded versions of newTrinoQuery in TDJobRequest.java.
  • Updated TDJob.java to include the new TRINO type for job requests.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main/java/com/treasuredata/client/model/TDJobRequest.java Adds overloaded newTrinoQuery methods for constructing TRINO job requests.
src/main/java/com/treasuredata/client/model/TDJob.java Adds TRINO enumerator to the job type enum to support TRINO queries.
Comments suppressed due to low confidence (2)

src/main/java/com/treasuredata/client/model/TDJobRequest.java:113

  • Add Javadoc comments to explain the purpose and differences between the overloaded newTrinoQuery methods, similar to the existing query methods.
public static TDJobRequest newTrinoQuery(String database, String query)

src/main/java/com/treasuredata/client/model/TDJobRequest.java:122

  • Ensure there are corresponding tests that validate the behavior of each newTrinoQuery overload for proper functionality.
public static TDJobRequest newTrinoQuery(String database, String query, String resultOutput)

Copy link
Contributor

@tung-vu-td tung-vu-td left a comment

Choose a reason for hiding this comment

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

You may want to add some tests 😌

@imnutz imnutz force-pushed the add_trino_query branch from 2bd222e to c6f2271 Compare June 18, 2025 02:15
@imnutz imnutz requested a review from a team June 18, 2025 02:17
Copy link
Contributor

@tung-vu-td tung-vu-td left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@nmpennypacker nmpennypacker left a comment

Choose a reason for hiding this comment

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

Reviewed for data exfiltrations

@imnutz imnutz merged commit 6bd21d7 into master Jun 19, 2025
11 checks passed
@imnutz imnutz deleted the add_trino_query branch June 19, 2025 07:09
This was referenced Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants