[Bug][RoutineLoad] Fix routine load timezone property invalid (#4339)

This commit is contained in:
HangyuanLiu
2020-08-13 23:40:54 +08:00
committed by GitHub
parent 05fa55047e
commit 4fa35c9f39

View File

@ -281,6 +281,7 @@ public abstract class RoutineLoadJob extends AbstractTxnStateChangeCallback impl
if (stmt.getMaxBatchSize() != -1) {
this.maxBatchSizeBytes = stmt.getMaxBatchSize();
}
jobProperties.put(LoadStmt.TIMEZONE, stmt.getTimezone());
jobProperties.put(LoadStmt.STRICT_MODE, String.valueOf(stmt.isStrictMode()));
if (Strings.isNullOrEmpty(stmt.getFormat()) || stmt.getFormat().equals("csv")) {
jobProperties.put(PROPS_FORMAT, "csv");