diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileScanNode.java index f882a833373a4f..63dd6d452a771e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileScanNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/external/FileScanNode.java @@ -175,6 +175,7 @@ protected void setDefaultValueExprs(TableIf tbl, if (column.getDefaultValue() != null) { if (column.getDefaultValueExprDef() != null) { expr = column.getDefaultValueExpr(); + expr.analyze(analyzer); } else { expr = new StringLiteral(column.getDefaultValue()); } diff --git a/regression-test/data/correctness_p0/test_current_timestamp.out b/regression-test/data/correctness_p0/test_current_timestamp.out index e66b4f88b9721b..30601403742f1a 100644 --- a/regression-test/data/correctness_p0/test_current_timestamp.out +++ b/regression-test/data/correctness_p0/test_current_timestamp.out @@ -12,28 +12,28 @@ 4 -- !stream_load_csv1 -- -4 +5 -- !stream_load_csv2 -- -4 +5 -- !stream_load_csv3 -- -4 +5 -- !stream_load_csv4 -- -4 +5 -- !stream_load_json1 -- -2 +3 -- !stream_load_json2 -- -2 +3 -- !stream_load_json3 -- -2 +3 -- !stream_load_json4 -- -2 +3 -- !stream_load_json5 -- 9 apache diff --git a/regression-test/data/correctness_p0/test_current_timestamp_streamload.csv b/regression-test/data/correctness_p0/test_current_timestamp_streamload.csv index 55f24a1c84edc3..d78a3b30458aee 100644 --- a/regression-test/data/correctness_p0/test_current_timestamp_streamload.csv +++ b/regression-test/data/correctness_p0/test_current_timestamp_streamload.csv @@ -1,4 +1,5 @@ 5,ee 6,ff 7,gg -8,hh \ No newline at end of file +8,hh +9,