Thomas Zhang
01/24/2023, 10:15 PMstmt_set \
.add_insert_sql("INSERT INTO OFFER_ELIGIBILITY_CURRENT_STATE SELECT * FROM offer_elig_j_1")
stmt_set \
.add_insert_sql("INSERT INTO OFFER_ELIGIBILITY_CURRENT_STATE SELECT * FROM offer_elig_j_2")
table_result = stmt_set.execute()
but I'm running into this error
Caused by: java.lang.IllegalArgumentException: Hash collision on user-specified ID "uid_hoodie_stream_writeOFFER_ELIGIBILITY_CURRENT_STATE". Most likely cause is a non-unique ID. Please check that all IDs specified via `uid(String)` are unique.
is how I'm using StatementSets to write into one destination from multiple sources supported?Martijn Visser
01/25/2023, 8:08 AMMartijn Visser
01/25/2023, 8:08 AMThomas Zhang
01/25/2023, 6:46 PMMartijn Visser
01/25/2023, 6:48 PMThomas Zhang
01/25/2023, 7:07 PMMartijn Visser
01/25/2023, 7:10 PMThomas Zhang
01/25/2023, 7:15 PMMartijn Visser
01/25/2023, 7:27 PMMartijn Visser
01/25/2023, 7:35 PMThomas Zhang
01/25/2023, 7:39 PMMartijn Visser
01/25/2023, 7:39 PMThomas Zhang
01/26/2023, 8:00 PMattach_as_datastream() from https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/dev/table/data_stream_api/#adding-table-api-pipelines-to-datastream-api
but in the jar I'm using (<https://repo1.maven.org/maven2/org/apache/hudi/hudi-flink1.14-bundle_2.12/0.11.1/hudi-flink1.14-bundle_2.12-0.11.1.jar>) pyflink doesn't support that function yet I believe. Didn't try the updated jar because we've experienced other errors that made us use this downgraded jar insteadMartijn Visser
01/26/2023, 8:48 PMThomas Zhang
01/27/2023, 5:21 PMDian Fu
01/29/2023, 3:44 AMINSERT INTO OFFER_ELIGIBILITY_CURRENT_STATE
SELECT * FROM offer_elig_j_1
UNION ALL
SELECT * FROM offer_elig_j_2Thomas Zhang
01/30/2023, 4:40 PMUNION ALL, then I will be loading all the data at once and run into OOM unless I deploy a huge amount of resources, right?Dian Fu
01/31/2023, 2:04 AMinsert into statements:
stmt_set \
.add_insert_sql("INSERT INTO OFFER_ELIGIBILITY_CURRENT_STATE_1 SELECT * FROM offer_elig_j_1")
stmt_set \
.add_insert_sql("INSERT INTO OFFER_ELIGIBILITY_CURRENT_STATE_2 SELECT * FROM offer_elig_j_2")Thomas Zhang
02/02/2023, 9:08 PM