Skip to content

Commit

Permalink
[MINOR] show all data on CsvTest
Browse files Browse the repository at this point in the history
  • Loading branch information
caicancai authored and mihaibudiu committed Dec 13, 2023
1 parent dc115a8 commit 8c640da
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,15 @@ static Stream<String> explainFormats() {
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 {
Expand Down

0 comments on commit 8c640da

Please sign in to comment.