Add GraalVM Reachability Metadata and corresponding nativeTest for HiveServer2 #31526
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #29052.
Changes proposed in this pull request:
shardingsphere-parser-sql-hive
module does not supportCREATE
,SET
,TRUNCATE
,DROP
statements yet. This is marked with a TODO.DELETE FROM t_address WHERE address_id=?
, we always need to execute some Hive Session-level SQL in the currentjavax.sql.DataSource
. However, since the SQL parsing ofset key=value
is not supported, these SQLs are currently located intest-native/sql/test-native-databases-hive.sql
and are directly passed through to the actual Hive database for processing.initFile
parameter of HiveServer2 JDBC Driver must be an absolute path. Maybe new properties can be added on the Hive side.org.apache.hive:hive-jdbc:4.0.0
does not contain any compile scope dependence.org.apache.hadoop.shaded.com.ctc.wstx.io.InputBootstrapper
fromorg.apache.hadoop:hadoop-client-api
should not be excluded internally withinorg.apache.hive:hive-service:4.0.0
, which necessitates excluding its internal dependency onorg.apache.hadoop:hadoop-client-api
and manually addingorg.apache.hadoop:hadoop-client-api:3.3.5
.t_order
andt_order_item
tables becauseorg.apache.hive.jdbc.HiveStatement
does not implementjava.sql.Statement#getGeneratedKeys()
.io.grpc:grpc-netty-shaded:1.58.0
inorg.apache.hive:hive-service:4.0.0
shades Netty, this shaded package requires additionalnative-image.properties
. If the HiveServer2 JDBC Driver can remove the use ofgrpc-netty-shaded
, it will obviously make the current PR less difficult to understand.Before committing this PR, I'm sure that I have checked the following options:
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e
.