Created
July 20, 2023 16:49
-
-
Save nfarah86/4248e689536806315b61d38defba7815 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- CREATE TABLE statement | |
CREATE TABLE demo ( | |
id int, | |
name string, | |
ts timestamp | |
) | |
USING hudi | |
OPTIONS ( | |
primaryKey = "id", | |
preCombineField = "ts", | |
hoodie.precommit.validators = "org.apache.hudi.client.validator.SqlQuerySingleResultPreCommitValidator", | |
hoodie.precommit.validators.single.value.sql.queries = "SELECT COUNT(*) FROM <TABLE_NAME> WHERE name IS NULL#0" | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment