-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1947501: Create AST API in JDBC #2112
SNOW-1947501: Create AST API in JDBC #2112
Conversation
All contributors have signed the CLA ✍️ ✅ |
@@ -787,7 +791,10 @@ public SFBaseResultSet execute( | |||
throws SQLException, SFException { | |||
TelemetryService.getInstance().updateContext(session.getSnowflakeConnectionString()); | |||
|
|||
// todo: if (dataframeAst == null) | |||
if (dataframeAst != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of return early, just use if statement to skip all sql functions, then we can benefit from feature changes related to non-sql part.
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add some test
@@ -787,22 +791,23 @@ public SFBaseResultSet execute( | |||
throws SQLException, SFException { | |||
TelemetryService.getInstance().updateContext(session.getSnowflakeConnectionString()); | |||
|
|||
// todo: if (dataframeAst == null) | |||
sanityCheckQuery(sql); | |||
if (dataframeAst == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write a comment above this line, to mention why we skip those code.
@@ -175,7 +175,13 @@ public ResultSet executeAsyncQuery(String sql) throws SQLException { | |||
return rs; | |||
} | |||
|
|||
// todo: add doc | |||
/** | |||
* Execute SQL query asynchronously |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asynchronously ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Overview
SNOW-1947501
Pre-review self checklist
master
branchmvn -P check-style validate
)mvn verify
and inspecttarget/japicmp/japicmp.html
)SNOW-XXXX:
External contributors - please answer these questions before submitting a pull request. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Issue: #NNNN
Fill out the following pre-review checklist:
@SnowflakeJdbcInternalApi
(note that public/protected methods/fields in classes marked with this annotation are already internal)Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.