Stamatis Zampetakis created HIVE-26441:
------------------------------------------

             Summary: Add DatabaseAccessor unit tests for all methods and 
supported DBMS
                 Key: HIVE-26441
                 URL: https://issues.apache.org/jira/browse/HIVE-26441
             Project: Hive
          Issue Type: Test
          Components: JDBC storage handler
            Reporter: Stamatis Zampetakis


The 
[DatabaseAccessor|https://github.com/apache/hive/blob/9909edee8dad841e15fc36df81a2316bcb381bc3/jdbc-handler/src/main/java/org/apache/hive/storage/jdbc/dao/DatabaseAccessor.java]
 interface provides various APIs and has multiple concrete implementations one 
for each supported DBMS.

There are a few end-to-end tests for JDBC storage handler (see 
[relevant|https://github.com/search?q=repo%3Aapache%2Fhive+filename%3A*jdbc*.q+extension%3Aq+filename%3A*jdbc*&type=Code]
 qfiles) and also a few unit tests 
([TestGenericJdbcDatabaseAccessor|https://github.com/apache/hive/blob/9909edee8dad841e15fc36df81a2316bcb381bc3/jdbc-handler/src/test/java/org/apache/hive/storage/jdbc/dao/TestGenericJdbcDatabaseAccessor.java])
 but we do not have enough coverage.

Ideally we should have unit tests for each method present in the top level 
interface and for each supported DBMS. The goal of this JIRA is to add more 
unit tests, similar to what {{TestGenericJdbcDatabaseAccessor}} is doing, 
covering more methods, use-cases, and DBMS.

The scope of this JIRA can get quite big so it makes sense to create additional 
sub-tasks for addressing specific cases.



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

Reply via email to