-
Notifications
You must be signed in to change notification settings - Fork 171
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
Add tests for max LOB size #1623
Conversation
protected static String jsonQueryResultFormat = "json"; | ||
|
||
//TODO: increase max size to 128 * 1024 * 1024 | ||
public static int maxLobSize = 16 * 1024 * 1024; |
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.
please prefer private than public for fields
|
||
public static Connection getConnection() throws SQLException { | ||
Connection con = BaseJDBCTest.getConnection(); | ||
Statement stmt = con.createStatement(); |
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 use try-with-resources in all the places where it is possible
return con; | ||
} | ||
|
||
public static void setJSONResultFormat(Connection con) throws SQLException { |
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.
those non-test methods should be private?
pstmt.close(); | ||
} | ||
@Test | ||
public void testSmallLobSize() throws SQLException { |
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 make those tests parameterized with the size of the lob and just comment out or ignore not supported yet entries
…ientSettingsKey (#1627)
…if pattern searches for some DatabaseMetaData methods are allowed (#1639)
…orCodeChangeOnAsyncQuery (#1644)
#1624) * SNOW-970859 Implement getObject for structured types for JSON response * SNOW-974576 Create FieldsMetadata * SNOW-974576 Add JsonConverters in ArrowResultSet for struct --------- Co-authored-by: Przemyslaw Motacki <[email protected]>
…owflake-jdbc into max-lob-size-test
This branch got messed up when I was trying to commit my latest changes. For simplicity I've opened a new PR here #1653 and will close this one to not add clutter. |
Overview
SNOW-XXXXX
External contributors - please answer these questions before submitting a pull request. Thanks!
Please answer these questions before submitting your pull requests. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.
Pre-review checklist