Add oracle, redshift, postgresql jdbc fetch size#22670
Add oracle, redshift, postgresql jdbc fetch size#22670Praveen2112 merged 3 commits intotrinodb:masterfrom
Conversation
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
5f75046 to
67c384c
Compare
fcaa8f6 to
956503a
Compare
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
956503a to
35b2958
Compare
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
35b2958 to
116adca
Compare
c1d61f0 to
8515186
Compare
Praveen2112
left a comment
There was a problem hiding this comment.
How about having a commit for each connector ?
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
For Oracle : For redshift: and fetchsize: for postgress: So set 0 is equal to not set. And latter in the code there is check: So if initial value is 0 (or not set), then DefaultRowPrefetch is applied. |
8515186 to
9fe8dc7
Compare
As far as I understood connector's code, setting fetch size to 0 or not setting it at all, means for connectors - use some internal default value. |
|
@vlad-lyutenko We didn't agree with this new property on #16269 and merged #16644 instead. Could you explain more detailed context in the PR description? |
Yep, but our heuristic formula is not perfect (I mean doesn't cover all corner cases), if user knows better his data layout and query type, maybe it's worth to give him ability to set explicitly fetch size, until we tune our heuristic formula to the perfect state. |
plugin/trino-postgresql/src/main/java/io/trino/plugin/postgresql/PostgreSqlClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-postgresql/src/main/java/io/trino/plugin/postgresql/PostgreSqlClient.java
Outdated
Show resolved
Hide resolved
05d85a6 to
cbb2dde
Compare
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleConfig.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
cbb2dde to
6ef6fde
Compare
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleConfig.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-oracle/src/main/java/io/trino/plugin/oracle/OracleConfig.java
Outdated
Show resolved
Hide resolved
b07a030 to
cf93e29
Compare
cf93e29 to
4be2983
Compare
|
/test-with-secrets sha=4be2983e71641333581c42607670e5266bbffe53 |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/10281796499 |
4be2983 to
d880bd4
Compare
|
/test-with-secrets sha=d880bd47b8a25a8bded3134a7898dfd9dcabc244 |
|
The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/10284645638 |
|
This run is successful - https://github.com/trinodb/trino/actions/runs/10284645638 |
|
This will need to be documented. |
trino specific heuristic is applied if empty or zero
Description
Additional context and related issues
Release notes
( ) 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.
(x) Release notes are required, with the following suggested text: