@@ -1337,42 +1337,56 @@ DropObjects(DropObjectsStatement { object_type: Index, if_exists: true, names: [
13371337parse-statement
13381338SUBSCRIBE foo.bar
13391339----
1340- SUBSCRIBE TO foo.bar
1340+ SUBSCRIBE foo.bar
13411341=>
13421342Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: None, output: Diffs })
13431343
13441344parse-statement
13451345SUBSCRIBE TO foo.bar
13461346----
1347- SUBSCRIBE TO foo.bar
1347+ SUBSCRIBE foo.bar
13481348=>
13491349Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: None, output: Diffs })
13501350
1351+ parse-statement
1352+ SUBSCRIBE TO to
1353+ ----
1354+ SUBSCRIBE TO to
1355+ =>
1356+ Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("to")]))), options: [], as_of: None, up_to: None, output: Diffs })
1357+
1358+ parse-statement
1359+ SUBSCRIBE TO to.foo
1360+ ----
1361+ SUBSCRIBE TO to.foo
1362+ =>
1363+ Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("to"), Ident("foo")]))), options: [], as_of: None, up_to: None, output: Diffs })
1364+
13511365parse-statement
13521366SUBSCRIBE foo.bar AS OF 123
13531367----
1354- SUBSCRIBE TO foo.bar AS OF 123
1368+ SUBSCRIBE foo.bar AS OF 123
13551369=>
13561370Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: Some(At(Value(Number("123")))), up_to: None, output: Diffs })
13571371
13581372parse-statement
13591373SUBSCRIBE foo.bar AS OF now()
13601374----
1361- SUBSCRIBE TO foo.bar AS OF now()
1375+ SUBSCRIBE foo.bar AS OF now()
13621376=>
13631377Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: Some(At(Function(Function { name: Name(UnresolvedItemName([Ident("now")])), args: Args { args: [], order_by: [] }, filter: None, over: None, distinct: false }))), up_to: None, output: Diffs })
13641378
13651379parse-statement
13661380SUBSCRIBE foo.bar WITH (SNAPSHOT) AS OF now()
13671381----
1368- SUBSCRIBE TO foo.bar WITH (SNAPSHOT) AS OF now()
1382+ SUBSCRIBE foo.bar WITH (SNAPSHOT) AS OF now()
13691383=>
13701384Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [SubscribeOption { name: Snapshot, value: None }], as_of: Some(At(Function(Function { name: Name(UnresolvedItemName([Ident("now")])), args: Args { args: [], order_by: [] }, filter: None, over: None, distinct: false }))), up_to: None, output: Diffs })
13711385
13721386parse-statement
13731387SUBSCRIBE foo.bar WITH (PROGRESS) AS OF now()
13741388----
1375- SUBSCRIBE TO foo.bar WITH (PROGRESS) AS OF now()
1389+ SUBSCRIBE foo.bar WITH (PROGRESS) AS OF now()
13761390=>
13771391Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [SubscribeOption { name: Progress, value: None }], as_of: Some(At(Function(Function { name: Name(UnresolvedItemName([Ident("now")])), args: Args { args: [], order_by: [] }, filter: None, over: None, distinct: false }))), up_to: None, output: Diffs })
13781392
@@ -1386,35 +1400,35 @@ SUBSCRIBE foo.bar WITH (SNAPSHOT = false, TIMESTAMPS) AS OF now()
13861400parse-statement
13871401SUBSCRIBE foo.bar WITH (SNAPSHOT false)
13881402----
1389- SUBSCRIBE TO foo.bar WITH (SNAPSHOT = false)
1403+ SUBSCRIBE foo.bar WITH (SNAPSHOT = false)
13901404=>
13911405Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [SubscribeOption { name: Snapshot, value: Some(Value(Boolean(false))) }], as_of: None, up_to: None, output: Diffs })
13921406
13931407parse-statement
13941408SUBSCRIBE (SELECT * FROM a)
13951409----
1396- SUBSCRIBE TO (SELECT * FROM a)
1410+ SUBSCRIBE (SELECT * FROM a)
13971411=>
13981412Subscribe(SubscribeStatement { relation: Query(Query { ctes: Simple([]), body: Select(Select { distinct: None, projection: [Wildcard], from: [TableWithJoins { relation: Table { name: Name(UnresolvedItemName([Ident("a")])), alias: None }, joins: [] }], selection: None, group_by: [], having: None, qualify: None, options: [] }), order_by: [], limit: None, offset: None }), options: [], as_of: None, up_to: None, output: Diffs })
13991413
14001414parse-statement
14011415SUBSCRIBE foo.bar AS OF now() UP TO now() + interval '1' day
14021416----
1403- SUBSCRIBE TO foo.bar AS OF now() UP TO now() + INTERVAL '1' DAY
1417+ SUBSCRIBE foo.bar AS OF now() UP TO now() + INTERVAL '1' DAY
14041418=>
14051419Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: Some(At(Function(Function { name: Name(UnresolvedItemName([Ident("now")])), args: Args { args: [], order_by: [] }, filter: None, over: None, distinct: false }))), up_to: Some(Op { op: Op { namespace: None, op: "+" }, expr1: Function(Function { name: Name(UnresolvedItemName([Ident("now")])), args: Args { args: [], order_by: [] }, filter: None, over: None, distinct: false }), expr2: Some(Value(Interval(IntervalValue { value: "1", precision_high: Year, precision_low: Day, fsec_max_precision: None }))) }), output: Diffs })
14061420
14071421parse-statement
14081422SUBSCRIBE foo.bar UP TO now() + interval '1' day
14091423----
1410- SUBSCRIBE TO foo.bar UP TO now() + INTERVAL '1' DAY
1424+ SUBSCRIBE foo.bar UP TO now() + INTERVAL '1' DAY
14111425=>
14121426Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: Some(Op { op: Op { namespace: None, op: "+" }, expr1: Function(Function { name: Name(UnresolvedItemName([Ident("now")])), args: Args { args: [], order_by: [] }, filter: None, over: None, distinct: false }), expr2: Some(Value(Interval(IntervalValue { value: "1", precision_high: Year, precision_low: Day, fsec_max_precision: None }))) }), output: Diffs })
14131427
14141428parse-statement
14151429SUBSCRIBE foo.bar AS OF AT LEAST 1
14161430----
1417- SUBSCRIBE TO foo.bar AS OF AT LEAST 1
1431+ SUBSCRIBE foo.bar AS OF AT LEAST 1
14181432=>
14191433Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: Some(AtLeast(Value(Number("1")))), up_to: None, output: Diffs })
14201434
@@ -1435,7 +1449,7 @@ SUBSCRIBE foo.bar ENVELOPE UPSERT KEY (a, b, c, d, e)
14351449parse-statement
14361450SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a, b, c, d, e))
14371451----
1438- SUBSCRIBE TO foo.bar ENVELOPE UPSERT (KEY (a, b, c, d, e))
1452+ SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a, b, c, d, e))
14391453=>
14401454Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: None, output: EnvelopeUpsert { key_columns: [Ident("a"), Ident("b"), Ident("c"), Ident("d"), Ident("e")] } })
14411455
@@ -1456,14 +1470,14 @@ SUBSCRIBE foo.bar ENVELOPE DEBEZIUM KEY (a, b, c, d, e)
14561470parse-statement
14571471SUBSCRIBE foo.bar ENVELOPE DEBEZIUM (KEY (c))
14581472----
1459- SUBSCRIBE TO foo.bar ENVELOPE DEBEZIUM (KEY (c))
1473+ SUBSCRIBE foo.bar ENVELOPE DEBEZIUM (KEY (c))
14601474=>
14611475Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: None, output: EnvelopeDebezium { key_columns: [Ident("c")] } })
14621476
14631477parse-statement
14641478SUBSCRIBE foo.bar ENVELOPE DEBEZIUM (KEY (a, b, c, d, e))
14651479----
1466- SUBSCRIBE TO foo.bar ENVELOPE DEBEZIUM (KEY (a, b, c, d, e))
1480+ SUBSCRIBE foo.bar ENVELOPE DEBEZIUM (KEY (a, b, c, d, e))
14671481=>
14681482Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: None, output: EnvelopeDebezium { key_columns: [Ident("a"), Ident("b"), Ident("c"), Ident("d"), Ident("e")] } })
14691483
@@ -1485,14 +1499,14 @@ SUBSCRIBE foo.bar ENVELOPE
14851499parse-statement
14861500SUBSCRIBE foo.bar WITHIN TIMESTAMP ORDER BY a ASC NULLS LAST, b, c DESC
14871501----
1488- SUBSCRIBE TO foo.bar WITHIN TIMESTAMP ORDER BY a ASC NULLS LAST, b, c DESC
1502+ SUBSCRIBE foo.bar WITHIN TIMESTAMP ORDER BY a ASC NULLS LAST, b, c DESC
14891503=>
14901504Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: None, output: WithinTimestampOrderBy { order_by: [OrderByExpr { expr: Identifier([Ident("a")]), asc: Some(true), nulls_last: Some(true) }, OrderByExpr { expr: Identifier([Ident("b")]), asc: None, nulls_last: None }, OrderByExpr { expr: Identifier([Ident("c")]), asc: Some(false), nulls_last: None }] } })
14911505
14921506parse-statement
14931507SUBSCRIBE (SELECT *, f1 + f2 FROM foo.bar) WITHIN TIMESTAMP ORDER BY foo.bar.baz DESC, f1 + f2
14941508----
1495- SUBSCRIBE TO (SELECT *, f1 + f2 FROM foo.bar) WITHIN TIMESTAMP ORDER BY foo.bar.baz DESC, f1 + f2
1509+ SUBSCRIBE (SELECT *, f1 + f2 FROM foo.bar) WITHIN TIMESTAMP ORDER BY foo.bar.baz DESC, f1 + f2
14961510=>
14971511Subscribe(SubscribeStatement { relation: Query(Query { ctes: Simple([]), body: Select(Select { distinct: None, projection: [Wildcard, Expr { expr: Op { op: Op { namespace: None, op: "+" }, expr1: Identifier([Ident("f1")]), expr2: Some(Identifier([Ident("f2")])) }, alias: None }], from: [TableWithJoins { relation: Table { name: Name(UnresolvedItemName([Ident("foo"), Ident("bar")])), alias: None }, joins: [] }], selection: None, group_by: [], having: None, qualify: None, options: [] }), order_by: [], limit: None, offset: None }), options: [], as_of: None, up_to: None, output: WithinTimestampOrderBy { order_by: [OrderByExpr { expr: Identifier([Ident("foo"), Ident("bar"), Ident("baz")]), asc: Some(false), nulls_last: None }, OrderByExpr { expr: Op { op: Op { namespace: None, op: "+" }, expr1: Identifier([Ident("f1")]), expr2: Some(Identifier([Ident("f2")])) }, asc: None, nulls_last: None }] } })
14981512
@@ -1507,21 +1521,21 @@ SUBSCRIBE foo.bar WITHIN TIMESTAMP ORDER BY
15071521parse-statement
15081522SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a)) AS OF 1 UP TO 2
15091523----
1510- SUBSCRIBE TO foo.bar AS OF 1 UP TO 2 ENVELOPE UPSERT (KEY (a))
1524+ SUBSCRIBE foo.bar AS OF 1 UP TO 2 ENVELOPE UPSERT (KEY (a))
15111525=>
15121526Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: Some(At(Value(Number("1")))), up_to: Some(Value(Number("2"))), output: EnvelopeUpsert { key_columns: [Ident("a")] } })
15131527
15141528parse-statement
15151529SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a)) AS OF 1
15161530----
1517- SUBSCRIBE TO foo.bar AS OF 1 ENVELOPE UPSERT (KEY (a))
1531+ SUBSCRIBE foo.bar AS OF 1 ENVELOPE UPSERT (KEY (a))
15181532=>
15191533Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: Some(At(Value(Number("1")))), up_to: None, output: EnvelopeUpsert { key_columns: [Ident("a")] } })
15201534
15211535parse-statement
15221536SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a)) WITH (SNAPSHOT = true)
15231537----
1524- SUBSCRIBE TO foo.bar WITH (SNAPSHOT = true) ENVELOPE UPSERT (KEY (a))
1538+ SUBSCRIBE foo.bar WITH (SNAPSHOT = true) ENVELOPE UPSERT (KEY (a))
15251539=>
15261540Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [SubscribeOption { name: Snapshot, value: Some(Value(Boolean(true))) }], as_of: None, up_to: None, output: EnvelopeUpsert { key_columns: [Ident("a")] } })
15271541
@@ -1535,7 +1549,7 @@ SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a)) WITH (SNAPSHOT = true) WITHIN TIMEST
15351549parse-statement
15361550SUBSCRIBE foo.bar ENVELOPE UPSERT (KEY (a)) UP TO 2
15371551----
1538- SUBSCRIBE TO foo.bar UP TO 2 ENVELOPE UPSERT (KEY (a))
1552+ SUBSCRIBE foo.bar UP TO 2 ENVELOPE UPSERT (KEY (a))
15391553=>
15401554Subscribe(SubscribeStatement { relation: Name(Name(UnresolvedItemName([Ident("foo"), Ident("bar")]))), options: [], as_of: None, up_to: Some(Value(Number("2"))), output: EnvelopeUpsert { key_columns: [Ident("a")] } })
15411555
0 commit comments