|
@@ -48,7 +48,7 @@ func Test_createLogicalPlan(t *testing.T) {
|
|
|
"src2": `CREATE STREAM src2 (
|
|
|
id2 BIGINT,
|
|
|
hum BIGINT
|
|
|
- ) WITH (DATASOURCE="src2", FORMAT="json", KEY="ts");`,
|
|
|
+ ) WITH (DATASOURCE="src2", FORMAT="json", KEY="ts", TIMESTAMP_FORMAT="YYYY-MM-dd HH:mm:ss");`,
|
|
|
"tableInPlanner": `CREATE TABLE tableInPlanner (
|
|
|
id BIGINT,
|
|
|
name STRING,
|
|
@@ -226,8 +226,9 @@ func Test_createLogicalPlan(t *testing.T) {
|
|
|
FieldType: &ast.BasicType{Type: ast.BIGINT},
|
|
|
},
|
|
|
},
|
|
|
- streamStmt: streams["src2"],
|
|
|
- metaFields: []string{},
|
|
|
+ streamStmt: streams["src2"],
|
|
|
+ metaFields: []string{},
|
|
|
+ timestampFormat: "YYYY-MM-dd HH:mm:ss",
|
|
|
}.Init(),
|
|
|
},
|
|
|
},
|
|
@@ -477,8 +478,9 @@ func Test_createLogicalPlan(t *testing.T) {
|
|
|
FieldType: &ast.BasicType{Type: ast.BIGINT},
|
|
|
},
|
|
|
},
|
|
|
- streamStmt: streams["src2"],
|
|
|
- metaFields: []string{},
|
|
|
+ streamStmt: streams["src2"],
|
|
|
+ metaFields: []string{},
|
|
|
+ timestampFormat: "YYYY-MM-dd HH:mm:ss",
|
|
|
}.Init(),
|
|
|
},
|
|
|
},
|
|
@@ -574,8 +576,9 @@ func Test_createLogicalPlan(t *testing.T) {
|
|
|
FieldType: &ast.BasicType{Type: ast.BIGINT},
|
|
|
},
|
|
|
},
|
|
|
- streamStmt: streams["src2"],
|
|
|
- metaFields: []string{},
|
|
|
+ streamStmt: streams["src2"],
|
|
|
+ metaFields: []string{},
|
|
|
+ timestampFormat: "YYYY-MM-dd HH:mm:ss",
|
|
|
}.Init(),
|
|
|
},
|
|
|
},
|
|
@@ -948,8 +951,9 @@ func Test_createLogicalPlan(t *testing.T) {
|
|
|
FieldType: &ast.BasicType{Type: ast.BIGINT},
|
|
|
},
|
|
|
},
|
|
|
- streamStmt: streams["src2"],
|
|
|
- metaFields: []string{},
|
|
|
+ streamStmt: streams["src2"],
|
|
|
+ metaFields: []string{},
|
|
|
+ timestampFormat: "YYYY-MM-dd HH:mm:ss",
|
|
|
}.Init(),
|
|
|
DataSourcePlan{
|
|
|
name: "tableInPlanner",
|