Skip to content

Commit

Permalink
[Feature] update assert sink check
Browse files Browse the repository at this point in the history
  • Loading branch information
liunaijie committed Sep 18, 2023
1 parent 01865f2 commit f341d14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env {

source {
LocalFile {
result_table_name = "fake"
path = "/seatunnel/read/lzo_json"
row_delimiter = "\n"
partition_dir_expression = "${k0}=${v0}"
Expand Down Expand Up @@ -76,9 +77,10 @@ source {

sink {
Console {

source_table_name = "fake"
}
Assert {
source_table_name = "fake"
rules {
row_rules = [
{
Expand All @@ -92,7 +94,7 @@ sink {
field_type = string
field_value = [
{
rule_type = NOT_NULL
equals_to = "WArEB"
}
]
},
Expand All @@ -110,25 +112,16 @@ sink {
field_type = double
field_value = [
{
rule_type = NOT_NULL
equals_to = 12.4
}
]
},
{
field_name = name
field_type = string
field_name = c_date
field_type = date
field_value = [
{
rule_type = NOT_NULL
}
]
},
{
field_name = hobby
field_type = string
field_value = [
{
rule_type = NOT_NULL
equals_to = "2022-05-05"
}
]
}
Expand Down

0 comments on commit f341d14

Please sign in to comment.