[ 
https://issues.apache.org/jira/browse/HIVE-28399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated HIVE-28399:
-------------------------------
    Labels: hive-4.0.1-must pull-request-available  (was: 
pull-request-available)

> Improve the fetch size in HiveConnection
> ----------------------------------------
>
>                 Key: HIVE-28399
>                 URL: https://issues.apache.org/jira/browse/HIVE-28399
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: hive-4.0.1-must, pull-request-available
>             Fix For: 4.1.0
>
>
> If the 4.x Hive Jdbc client connects to an older HS2 or other thrift 
> implementations, it might throw the IllegalStateException: 
> [https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L1253-L1258],
>  as the remote might haven't set the property:  
> hive.server2.thrift.resultset.default.fetch.size back to the response of 
> OpenSession request. It also introduces the confusing on what the real fetch 
> size the connection is, as we have both initFetchSize and defaultFetchSize in 
> this HiveConnection, the HiveStatement checks the initFetchSize, 
> defaultFetchSize and 
> HIVE_SERVER2_THRIFT_RESULTSET_DEFAULT_FETCH_SIZE.defaultIntVal to obtain the 
> real fetch size, we can make them one in HiveConnection, so every statement 
> created from the connection uses this new fetch size.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to