[fix](planner) fix current_timestamp param type mismatch when doing stream load (#23092)

FileLoadScanNode did not analyze the default value expr, result in target param type int32 become int8 as the original IntLiteral type.
This commit is contained in:
Siyang Tang
2023-08-18 14:28:45 +08:00
committed by GitHub
parent a8d63ef93b
commit a7771ea507
3 changed files with 11 additions and 9 deletions

View File

@ -175,6 +175,7 @@ public abstract class FileScanNode extends ExternalScanNode {
if (column.getDefaultValue() != null) {
if (column.getDefaultValueExprDef() != null) {
expr = column.getDefaultValueExpr();
expr.analyze(analyzer);
} else {
expr = new StringLiteral(column.getDefaultValue());
}

View File

@ -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

View File

@ -1,4 +1,5 @@
5,ee
6,ff
7,gg
8,hh
8,hh
9,

1 5 ee
2 6 ff
3 7 gg
4 8 hh
5 9