zabetak opened a new pull request, #3470:
URL: https://github.com/apache/hive/pull/3470

   ### What changes were proposed in this pull request and why?
   1. Introduce new API `DatabaseAccessor#getColumnTypes` to: i) allow fetching 
column types from the database; ii) align with the code using 
`DatabaseAccessor#getColumnNames`.
   2. Use the new API to find the type of the partition column in 
`JdbcInputFormat` since information is not propagated correctly to 
`LIST_COLUMN_TYPES` and leads to IOBE.
   3. Some refactoring in `GenericJdbcDatabaseAccessor` to avoid duplicate code 
with the introduction of the new API.
   4. Add test reproducing the IOBE problem, and tests for the new API. 
   5. Adapt existing accessor,Jdbc format tests based on the changes.
   
   ### Does this PR introduce _any_ user-facing change?
   Solves the IOBE problem described in HIVE-26350
   
   ### How was this patch tested?
   ```
   mvn test -pl itests/qtest -Pitests -Dtest=TestMiniLlapLocalCliDriver 
-Dqfile=jdbc_partition_table_pruned_pcolumn.q,external_jdbc_table_partition.q,external_jdbc_table_typeconversion.q
   mvn test -pl jdbc-handler 
-Dtest=TestJdbcInputFormat,TestGenericJdbcDatabaseAccessor
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to