fix: unquote flow_name in create flow expr (#5483)

* fix: unquote flow_name in create flow expr

* chore: per review

* fix: compat with older version
This commit is contained in:
discord9
2025-02-07 16:26:14 +08:00
committed by GitHub
parent 88c3d331a1
commit f29a1c56e9
4 changed files with 108 additions and 11 deletions

View File

@@ -1306,7 +1306,7 @@ SELECT max(c1), min(c2) FROM schema_2.table_2;";
// create flow without `OR REPLACE`, `IF NOT EXISTS`, `EXPIRE AFTER` and `COMMENT`
let sql = r"
CREATE FLOW task_2
CREATE FLOW `task_2`
SINK TO schema_1.table_1
AS
SELECT max(c1), min(c2) FROM schema_2.table_2;";
@@ -1322,6 +1322,7 @@ SELECT max(c1), min(c2) FROM schema_2.table_2;";
assert!(!create_task.if_not_exists);
assert!(create_task.expire_after.is_none());
assert!(create_task.comment.is_none());
assert_eq!(create_task.flow_name.to_string(), "`task_2`");
}
#[test]