This is an automated email from the ASF dual-hosted git repository.
mbudiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new 8c640da341 [MINOR] show all data on CsvTest
8c640da341 is described below
commit 8c640da341efa2bc9a711290a4eca978a6174574
Author: caicancai <[email protected]>
AuthorDate: Wed Dec 13 22:14:05 2023 +0800
[MINOR] show all data on CsvTest
---
example/csv/src/test/java/org/apache/calcite/test/CsvTest.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/example/csv/src/test/java/org/apache/calcite/test/CsvTest.java
b/example/csv/src/test/java/org/apache/calcite/test/CsvTest.java
index 9a091e8a9f..dc2f686839 100644
--- a/example/csv/src/test/java/org/apache/calcite/test/CsvTest.java
+++ b/example/csv/src/test/java/org/apache/calcite/test/CsvTest.java
@@ -231,6 +231,15 @@ class CsvTest {
final String expected = "PLAN=CsvTableScan(table=[[SALES, EMPS]], "
+ "fields=[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]])\n";
sql("smart", sql).returns(expected).ok();
+ // make sure that it works...
+ sql("smart", "select * from EMPS")
+ .returns(
+ "EMPNO=100; NAME=Fred; DEPTNO=10; GENDER=; CITY=; EMPID=30;
AGE=25; SLACKER=true; MANAGER=false; JOINEDAT=1996-08-03",
+ "EMPNO=110; NAME=Eric; DEPTNO=20; GENDER=M; CITY=San Francisco;
EMPID=3; AGE=80; SLACKER=null; MANAGER=false; JOINEDAT=2001-01-01",
+ "EMPNO=110; NAME=John; DEPTNO=40; GENDER=M; CITY=Vancouver;
EMPID=2; AGE=null; SLACKER=false; MANAGER=true; JOINEDAT=2002-05-03",
+ "EMPNO=120; NAME=Wilma; DEPTNO=20; GENDER=F; CITY=; EMPID=1;
AGE=5; SLACKER=null; MANAGER=true; JOINEDAT=2005-09-07",
+ "EMPNO=130; NAME=Alice; DEPTNO=40; GENDER=F; CITY=Vancouver;
EMPID=2; AGE=null; SLACKER=false; MANAGER=true; JOINEDAT=2007-01-01")
+ .ok();
}
@Test void testPushDownProject2() throws SQLException {