From 536242c621659e180566178e13b455359d41c9cf Mon Sep 17 00:00:00 2001 From: everpcpc Date: Wed, 25 Oct 2023 08:52:42 +0800 Subject: [PATCH] fix: tokenize stage path --- cli/src/ast/tokenizer.rs | 2 +- cli/tests/01-put.sh | 2 +- cli/tests/data/books.parquet | Bin 0 -> 1882 bytes 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 cli/tests/data/books.parquet diff --git a/cli/src/ast/tokenizer.rs b/cli/src/ast/tokenizer.rs index b2bb73efa..62b314a83 100644 --- a/cli/src/ast/tokenizer.rs +++ b/cli/src/ast/tokenizer.rs @@ -122,7 +122,7 @@ pub enum TokenKind { #[regex(r#"'([^'\\]|\\.|'')*'"#)] QuotedString, - #[regex(r#"@([^\s`;'"])+"#)] + #[regex(r#"@([^\s`;'"])+/"#)] AtString, #[regex(r"[xX]'[a-fA-F0-9]*'")] diff --git a/cli/tests/01-put.sh b/cli/tests/01-put.sh index f0c5afd44..533d9481b 100755 --- a/cli/tests/01-put.sh +++ b/cli/tests/01-put.sh @@ -6,5 +6,5 @@ echo "CREATE STAGE ss_temp" | ${BENDSQL} echo "ABCD" >/tmp/a1.txt echo "ABCD" >/tmp/a2.txt -echo 'put fs:///tmp/a*.txt @ss_temp/abc' | ${BENDSQL} +echo 'put fs://cli/tests/data/*.parquet @ss_temp/abc/' | ${BENDSQL} echo 'get @ss_temp/abc fs:///tmp/edf' | ${BENDSQL} diff --git a/cli/tests/data/books.parquet b/cli/tests/data/books.parquet new file mode 100644 index 0000000000000000000000000000000000000000..ac610fa347d5560e65f82c8c281acf5cefbac723 GIT binary patch literal 1882 zcmWG=3^EjD5iJp|@BvaRLJSO6PsA7)7($8?^NJIbOEUBG6atF!lT(X}GxO4AfHFa; zi77y4u|j5^f=gmaVp3vpszPvOaY<@!u_%Kmn<$qK$Rr?xO~#BtLkzn~5;FMA0b0Y% z!N|;{wuebZltGBqvprNsL8o4U^awCbcQSAqjCN69drEETT+6 zD}j`os2408lshaCcyzS z2kx^EtO%d6C6<4k+h+2d7?(EJg!EC+$q+;D#oJ5AvS|mgn