Skip to content

Commit 5ea1434

Browse files
committed
test(hive): 按评审要求补充解析反解析断言
Signed-off-by: 付典 <fudianchn@gmail.com>
1 parent 2863e50 commit 5ea1434

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/test/java/net/sf/jsqlparser/statement/select/HiveTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import static org.junit.jupiter.api.Assertions.assertTrue;
1717

1818
import net.sf.jsqlparser.expression.Alias;
19-
import net.sf.jsqlparser.parser.CCJSqlParserUtil;
2019
import net.sf.jsqlparser.schema.Table;
2120
import org.junit.jupiter.api.Test;
2221

@@ -69,7 +68,7 @@ public void testLateralViewManyColumnAliasesIssue2433() throws Exception {
6968
+ " LATERAL VIEW json_tuple(j, 'a', 'b', 'c', 'd', 'e', 'f', 'g')"
7069
+ " x AS c1, c2, c3, c4, c5, c6, c7";
7170

72-
Select select = (Select) CCJSqlParserUtil.parse(sql);
71+
Select select = (Select) assertSqlCanBeParsedAndDeparsed(sql, true);
7372
PlainSelect plainSelect = (PlainSelect) select.getSelectBody();
7473

7574
// The extra aliases must not leak as cross-join tables.

0 commit comments

Comments
 (0)