Skip to content

Commit 3b566ed

Browse files
committed
Extend test case
1 parent c1b2aec commit 3b566ed

4 files changed

Lines changed: 43 additions & 5 deletions

File tree

tests/bin/snapshot.bin

222 Bytes
Binary file not shown.

tests/lqp/snapshot.lqp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,20 @@
5555
(output :snapshot2 :snapshot2)
5656
(output :snapshot3 :snapshot3)))
5757

58-
;; Snapshot with a prefix: express that all EDBs under "database" are captured.
58+
;; Snapshot with a prefix: express that all EDBs under "lineitem" are captured.
5959
(epoch
6060
(writes
61-
(snapshot ["database"]
62-
["table"] :computed))))
61+
(snapshot ["lineitem"]
62+
["l_orderkey"] :my_rel
63+
["l_partkey"] :computed
64+
["l_quantity"] :big_signed)))
65+
66+
;; Same snapshot with prefix redundantly included in mappings for backwards
67+
;; compatibility: an older engine that ignores the prefix field can still
68+
;; interpret the full paths.
69+
(epoch
70+
(writes
71+
(snapshot ["lineitem"]
72+
["lineitem" "l_orderkey"] :my_rel
73+
["lineitem" "l_partkey"] :computed
74+
["lineitem" "l_quantity"] :big_signed))))

tests/pretty/snapshot.lqp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,17 @@
5050
(output :snapshot1 :snapshot1)
5151
(output :snapshot2 :snapshot2)
5252
(output :snapshot3 :snapshot3)))
53-
(epoch (writes (snapshot ["database"] ["table"] :computed))))
53+
(epoch
54+
(writes
55+
(snapshot
56+
["lineitem"]
57+
["l_orderkey"] :my_rel
58+
["l_partkey"] :computed
59+
["l_quantity"] :big_signed)))
60+
(epoch
61+
(writes
62+
(snapshot
63+
["lineitem"]
64+
["lineitem" "l_orderkey"] :my_rel
65+
["lineitem" "l_partkey"] :computed
66+
["lineitem" "l_quantity"] :big_signed))))

tests/pretty_debug/snapshot.lqp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,20 @@
5555
(output :snapshot1 0x3624e471390d4119e743ba2750262197)
5656
(output :snapshot2 0xceba74ef3d3b0152a90894dc7ae1c114)
5757
(output :snapshot3 0xc772efb99999f4e6a9aefdc272b64ec8)))
58-
(epoch (writes (snapshot ["database"] ["table"] 0x80ad6fa1421c555c156fcefb75cfa12f))))
58+
(epoch
59+
(writes
60+
(snapshot
61+
["lineitem"]
62+
["l_orderkey"] 0x6a1bb464a40d07263ff95ce83517a614
63+
["l_partkey"] 0x80ad6fa1421c555c156fcefb75cfa12f
64+
["l_quantity"] 0xc00744ac4c3b7e574fb72f89046b65c)))
65+
(epoch
66+
(writes
67+
(snapshot
68+
["lineitem"]
69+
["lineitem" "l_orderkey"] 0x6a1bb464a40d07263ff95ce83517a614
70+
["lineitem" "l_partkey"] 0x80ad6fa1421c555c156fcefb75cfa12f
71+
["lineitem" "l_quantity"] 0xc00744ac4c3b7e574fb72f89046b65c))))
5972

6073
;; Debug information
6174
;; -----------------------

0 commit comments

Comments
 (0)