Skip to content

Commit f906238

Browse files
davidwzhaoclaude
andcommitted
Add ExportOutput test case and snapshots
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 46d424c commit f906238

4 files changed

Lines changed: 57 additions & 0 deletions

File tree

tests/bin/csv_output.bin

199 Bytes
Binary file not shown.

tests/lqp/csv_output.lqp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(transaction
2+
(epoch
3+
(writes
4+
(define
5+
(fragment :frag
6+
(def :test
7+
([x::INT]
8+
(+ 1 1 x))))))
9+
10+
(reads
11+
(output_export
12+
(csv
13+
(table_def :test)
14+
(csv_config {}))))))

tests/pretty/csv_output.lqp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(transaction
2+
(configure { :ivm.maintenance_level "off" :semantics_version 0})
3+
(epoch
4+
(writes (define (fragment :frag (def :test ([x::INT] (+ 1 1 x))))))
5+
(reads
6+
(output_export
7+
(csv
8+
(table_def :test)
9+
(csv_config
10+
{
11+
:csv_compression ""
12+
:csv_decimal_separator "."
13+
:csv_delimiter ","
14+
:csv_encoding "utf-8"
15+
:csv_escapechar "\""
16+
:csv_header_row 1i32
17+
:csv_quotechar "\""
18+
:csv_skip 0}))))))

tests/pretty_debug/csv_output.lqp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
(transaction
2+
(configure { :ivm.maintenance_level "off" :semantics_version 0})
3+
(epoch
4+
(writes
5+
(define
6+
(fragment :frag (def 0xa3bf4f1b2b0b822cd15d6c15b0f00a08 ([x::INT] (+ 1 1 x))))))
7+
(reads
8+
(output_export
9+
(csv
10+
(table_def 0xa3bf4f1b2b0b822cd15d6c15b0f00a08)
11+
(csv_config
12+
{
13+
:csv_compression ""
14+
:csv_decimal_separator "."
15+
:csv_delimiter ","
16+
:csv_encoding "utf-8"
17+
:csv_escapechar "\""
18+
:csv_header_row 1i32
19+
:csv_quotechar "\""
20+
:csv_skip 0}))))))
21+
22+
;; Debug information
23+
;; -----------------------
24+
;; Original names
25+
;; ID `0xa3bf4f1b2b0b822cd15d6c15b0f00a08` -> `test`

0 commit comments

Comments
 (0)