Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][JdbcSink] Set default value to false of JdbcOption: generate_sink_sql #4471

Merged
merged 14 commits into from
Apr 3, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public interface JdbcOptions {
Option<Boolean> GENERATE_SINK_SQL =
Options.key("generate_sink_sql")
.booleanType()
.defaultValue(true)
.defaultValue(false)
.withDescription("generate sql using the database table");

Option<String> XA_DATA_SOURCE_CLASS_NAME =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ sink {
url = "jdbc:sqlserver://sqlserver-host:1433;encrypt=false"
user = "sa"
password = "Password!"
generate_sink_sql = true
database = ""
table = "column_type_test.dbo.full_types_sink"
batch_size = 1
primary_keys = ["id"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sink {
url = "jdbc:postgresql://postgresql:5432/test?loggerLevel=OFF"
user = test
password = test

generate_sink_sql = true
database = test
table = "public.sink"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ sink {
url = "jdbc:postgresql://postgresql:5432/test?loggerLevel=OFF"
user = test
password = test
generate_sink_sql = true
database = test
table = "public.sink"
primary_keys = ["user_id"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ sink {
url = "jdbc:postgresql://postgresql:5432/test?loggerLevel=OFF"
user = test
password = test
generate_sink_sql = true
database = test
table = "public.sink"
primary_keys = ["pk_id"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ sink {
url = "jdbc:postgresql://postgresql:5432/test?loggerLevel=OFF"
user = test
password = test
generate_sink_sql = true
database = public
table = sink
primary_keys = ["id"]
Expand Down