[
https://issues.apache.org/jira/browse/IMPALA-12789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905303#comment-17905303
]
ASF subversion and git services commented on IMPALA-12789:
----------------------------------------------------------
Commit 907c1738a0e722809dd3befb36c0cf0bfc223c83 in impala's branch
refs/heads/master from Pranav Lodha
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=907c1738a ]
IMPALA-12789: Fix unit-test code JdbcDataSourceTest.java
The unit test `JdbcDataSourceTest.java` was originally
implemented using the H2 database, which is no longer
available in Impala's environment. The test code was
also outdated and erroneous.
This commit addresses and fixes the failure of
JdbcDataSourceTest.java and rewrites it in
Postgres, hence ensures compatibility with Impala's
current environment and aligns with JDBC and external
data source APIs. Please note, this test is moved to fe
folder to fix the BackendConfig instance not initialized
error.
To test this file, run the following command:
pushd fe && mvn -fae test -Dtest=JdbcDataSourceTest
Please note that the tests in JdbcDataSourceTest have a
dependency on previous tests and individual tests cannot be
ran separately for this class.
Change-Id: Ie07173d256d73c88f5a6c041f087db16b6ff3127
Reviewed-on: http://gerrit.cloudera.org:8080/21805
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Fix unit-test code JdbcDataSourceTest.java
> ------------------------------------------
>
> Key: IMPALA-12789
> URL: https://issues.apache.org/jira/browse/IMPALA-12789
> Project: IMPALA
> Issue Type: Sub-task
> Components: Frontend
> Reporter: Wenzhe Zhou
> Assignee: Pranav Yogi Lodha
> Priority: Major
> Fix For: Impala 4.5.0
>
>
> This JDBC unit-test
> (java/ext-data-source/jdbc/src/test/java/org/apache/impala/extdatasource/jdbc/JdbcDataSourceTest.java)
> was implemented with H2 database. We don't have H2 in our environment and
> the code was out of date. We need to rewrite this unit-test in Postgres.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]