-
Notifications
You must be signed in to change notification settings - Fork 170
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-1003959: Slow query in spring boot not showing the SQL executed. #1601
Comments
I checked PgPreparedStatement.java for postgres
There is no |
@shawnlu-ikigai thanks for reporting this. Would you agree that this is more of an enhancement request rather than a bug? |
Hi @sfc-gh-wfateem Thank you for timely response. Yes, enhancement makes more sense. |
@shawnlu-ikigai I made the change and test it locally so PR #1604 will address your problem. However, I just had an after thought and I think I can improve on this by adding a query ID in addition to the SQL text. Do you think that will be helpful as well? |
@sfc-gh-wfateem that's really quick man. Yeah query ID for sure will help. |
@shawnlu-ikigai the change was just merged but it's past the code freeze for January's release, so this will make its way in the JDBC driver's February release. |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of JDBC driver are you using?
3.14.3
What operating system and processor architecture are you using?
Mac
What version of Java are you using?
java17
What did you do?
I am following this page: https://vladmihalcea.com/hibernate-slow-query-log/
I added following config for a spring boot application:
What did you expect to see?
I am expecting to see the SQL execute:
However, What I am seeing looks as following:
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: