Draft: Add singlenode-hudi product test environment#14669
Draft: Add singlenode-hudi product test environment#14669findinpath wants to merge 1 commit intotrinodb:masterfrom
singlenode-hudi product test environment#14669Conversation
36f7226 to
f23f182
Compare
f23f182 to
00471b9
Compare
.../main/resources/docker/presto-product-tests/conf/environment/singlenode-hudi/hive.properties
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Note that a retry policy (as it can be seen for the other runners) is currently missing.
In case there will be identified cases worthy to apply a retry policy, then this call can be made with FailSafe.
testing/trino-product-tests/src/main/resources/tempto-configuration.yaml
Outdated
Show resolved
Hide resolved
...auncher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvSinglenodeHudi.java
Outdated
Show resolved
Hide resolved
3922aff to
c757f93
Compare
c757f93 to
7884267
Compare
ebyhr
left a comment
There was a problem hiding this comment.
Docker dependency was upgraded to 72. Could you rebase on upstream?
| } | ||
|
|
||
| @Test(groups = {HUDI, PROFILE_SPECIFIC_TESTS}) | ||
| public void testDemo() |
There was a problem hiding this comment.
testDemo sounds little weird. I would rename to other name.
There was a problem hiding this comment.
I intended with this PR (initially) only to test the hudi test docker image trinodb/docker-images#136
As I agreed (offline) with @codope, this PR can be used as base for building the actual hudi product tests.
| String tableName = "test_hudi_demo_" + randomTableSuffix(); | ||
| String tableDirectory = "hudi-compatibility-test-" + tableName; | ||
|
|
||
| onHudi().executeQuery(format("CREATE TABLE default.%s (uuid int, col string) USING hudi LOCATION 's3://%s/%s'", |
There was a problem hiding this comment.
Why uuid int? Other name looks better.
There was a problem hiding this comment.
https://hudi.apache.org/docs/quick-start-guide
uuidis used as primary key by default
| onHudi().executeQuery("insert into default." + tableName + " select 1, 'Trino'"); | ||
| onHudi().executeQuery("insert into default." + tableName + " select 2, 'rocks'"); |
There was a problem hiding this comment.
nit: Uppercase insert into & select.
|
Superseded by #14936 |
Introduction
The current draft is based (same as for Delta Lake OSS) on a MinIO data lake because I think this kind of setup is close to the integration with AWS S3 which we want to test with Trino for Hudi.
Testing via Apache Hive JDBC Driver
Connect via Apache Hive driver to
jdbc:hive2://localhost:10213/defaultUser
hive, passwordnaTesting via
ptl