Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.analysis.ParserTest Class Reference
Collaboration diagram for com.cloudera.impala.analysis.ParserTest:

Public Member Functions

Object ParsesOk (String stmt)
 
void ParserError (String stmt, String expectedErrorString)
 
void ParserError (String stmt)
 
void TestNoFromClause ()
 
void TestSelect ()
 
void TestAlias ()
 
void TestStar ()
 
void TestMultilineComment ()
 
void TestSinglelineComment ()
 
void TestPlanHints ()
 
void TestFromClause ()
 
void TestWhereClause ()
 
void TestGroupBy ()
 
void TestOrderBy ()
 
void TestHaving ()
 
void TestLimit ()
 
void TestOffset ()
 
void TestUnion ()
 
void TestValuesStmt () throws AnalysisException
 
void TestWithClause () throws AnalysisException
 
void TestNumericLiteralMinMaxValues ()
 
void TestIdentQuoting ()
 
void TestLiteralExprs ()
 
void TestFunctionCallExprs ()
 
void TestArithmeticExprs ()
 
void TestTimestampArithmeticExprs ()
 
void TestCaseExprs ()
 
void TestCastExprs ()
 
void TestConditionalExprs ()
 
void TestAggregateExprs ()
 
void TestAnalyticExprs ()
 
void TestPredicates ()
 
void TestCompoundPredicates ()
 
void TestBetweenPredicate ()
 
void TestInPredicate ()
 
void TestSlotRef ()
 
void TestInsert ()
 
void TestUse ()
 
void TestShow ()
 
void TestShowCreateTable ()
 
void TestDescribe ()
 
void TestCreateDatabase ()
 
void TestCreateFunction ()
 
void TestVariadicCreateFunctions ()
 
void TestCreateAggregate ()
 
void TestAlterTableAddReplaceColumns ()
 
void TestAlterTableAddPartition ()
 
void TestAlterTableDropColumn ()
 
void TestAlterTableDropPartition ()
 
void TestAlterTableChangeColumn ()
 
void TestAlterTableSet ()
 
void TestAlterTableOrViewRename ()
 
void TestCreateTable ()
 
void TestCreateDataSource ()
 
void TestDropDataSource ()
 
void TestCreateView ()
 
void TestAlterView ()
 
void TestCreateTableAsSelect ()
 
void TestDrop ()
 
void TestLoadData ()
 
void TestTypes ()
 
void TestResetMetadata ()
 
void TestComputeDropStats ()
 
void TestGetErrorMsg ()
 
void TestExplain ()
 
void TestSubqueries ()
 
void TestSet ()
 
void TestCreateDropRole ()
 
void TestGrantRevokeRole ()
 
void TestGrantRevokePrivilege ()
 
void TestShowRoles ()
 
void TestShowGrantRole ()
 
void TestComputeStats ()
 
void TestComputeStatsIncremental ()
 
void TestSemiColon ()
 

Package Functions

public< C extends Expr > Object ParsesOk (String selectStmtSql, Class< C > cl)
 

Private Member Functions

void TestJoinHints (String stmt, String...expectedHints)
 
void TestSelectListHints (String stmt, String...expectedHints)
 
void TestInsertHints (String stmt, String...expectedHints)
 
void testStringLiteral (String s)
 
void testCompoundPredicates (String andStr, String orStr, String notStr)
 
void testLiteralTruthValues (String andStr, String orStr, String notStr)
 
void testInsert ()
 
void TypeDefsParseOk (String...typeDefs)
 
void TypeDefsError (String...typeDefs)
 

Static Private Attributes

static final String[] operands_
 

Detailed Description

Definition at line 34 of file ParserTest.java.

Member Function Documentation

void com.cloudera.impala.analysis.ParserTest.ParserError ( String  stmt,
String  expectedErrorString 
)
inline

Asserts if stmt parses fine or the error string doesn't match and it is non-null.

Definition at line 81 of file ParserTest.java.

References gen_ir_descriptions.parser.

Referenced by com.cloudera.impala.analysis.ParserTest.ParserError(), com.cloudera.impala.analysis.ParserTest.TestAlias(), com.cloudera.impala.analysis.ParserTest.TestAlterTableAddPartition(), com.cloudera.impala.analysis.ParserTest.TestAlterTableAddReplaceColumns(), com.cloudera.impala.analysis.ParserTest.TestAlterTableChangeColumn(), com.cloudera.impala.analysis.ParserTest.TestAlterTableDropColumn(), com.cloudera.impala.analysis.ParserTest.TestAlterTableDropPartition(), com.cloudera.impala.analysis.ParserTest.TestAlterTableOrViewRename(), com.cloudera.impala.analysis.ParserTest.TestAlterTableSet(), com.cloudera.impala.analysis.ParserTest.TestAlterView(), com.cloudera.impala.analysis.ParserTest.TestAnalyticExprs(), com.cloudera.impala.analysis.ParserTest.TestArithmeticExprs(), com.cloudera.impala.analysis.ParserTest.TestBetweenPredicate(), com.cloudera.impala.analysis.ParserTest.TestCaseExprs(), com.cloudera.impala.analysis.ParserTest.TestCastExprs(), com.cloudera.impala.analysis.ParserTest.testCompoundPredicates(), com.cloudera.impala.analysis.ParserTest.TestComputeDropStats(), com.cloudera.impala.analysis.ParserTest.TestComputeStats(), com.cloudera.impala.analysis.ParserTest.TestComputeStatsIncremental(), com.cloudera.impala.analysis.ParserTest.TestConditionalExprs(), com.cloudera.impala.analysis.ParserTest.TestCreateAggregate(), com.cloudera.impala.analysis.ParserTest.TestCreateDatabase(), com.cloudera.impala.analysis.ParserTest.TestCreateDataSource(), com.cloudera.impala.analysis.ParserTest.TestCreateDropRole(), com.cloudera.impala.analysis.ParserTest.TestCreateFunction(), com.cloudera.impala.analysis.ParserTest.TestCreateTable(), com.cloudera.impala.analysis.ParserTest.TestCreateTableAsSelect(), com.cloudera.impala.analysis.ParserTest.TestCreateView(), com.cloudera.impala.analysis.ParserTest.TestDescribe(), com.cloudera.impala.analysis.ParserTest.TestDrop(), com.cloudera.impala.analysis.ParserTest.TestDropDataSource(), com.cloudera.impala.analysis.ParserTest.TestExplain(), com.cloudera.impala.analysis.ParserTest.TestFromClause(), com.cloudera.impala.analysis.ParserTest.TestFunctionCallExprs(), com.cloudera.impala.analysis.ParserTest.TestGetErrorMsg(), com.cloudera.impala.analysis.ParserTest.TestGrantRevokePrivilege(), com.cloudera.impala.analysis.ParserTest.TestGrantRevokeRole(), com.cloudera.impala.analysis.ParserTest.TestGroupBy(), com.cloudera.impala.analysis.ParserTest.TestHaving(), com.cloudera.impala.analysis.ParserTest.TestIdentQuoting(), com.cloudera.impala.analysis.ParserTest.TestInPredicate(), com.cloudera.impala.analysis.ParserTest.testInsert(), com.cloudera.impala.analysis.ParserTest.TestInsert(), com.cloudera.impala.analysis.ParserTest.TestLimit(), com.cloudera.impala.analysis.ParserTest.TestLiteralExprs(), com.cloudera.impala.analysis.ParserTest.TestLoadData(), com.cloudera.impala.analysis.ParserTest.TestMultilineComment(), com.cloudera.impala.analysis.ParserTest.TestNoFromClause(), com.cloudera.impala.analysis.ParserTest.TestOffset(), com.cloudera.impala.analysis.ParserTest.TestOrderBy(), com.cloudera.impala.analysis.ParserTest.TestPlanHints(), com.cloudera.impala.analysis.ParserTest.TestResetMetadata(), com.cloudera.impala.analysis.ParserTest.TestSelect(), com.cloudera.impala.analysis.ParserTest.TestSemiColon(), com.cloudera.impala.analysis.ParserTest.TestSet(), com.cloudera.impala.analysis.ParserTest.TestShow(), com.cloudera.impala.analysis.ParserTest.TestShowCreateTable(), com.cloudera.impala.analysis.ParserTest.TestShowGrantRole(), com.cloudera.impala.analysis.ParserTest.TestShowRoles(), com.cloudera.impala.analysis.ParserTest.TestSinglelineComment(), com.cloudera.impala.analysis.ParserTest.TestStar(), com.cloudera.impala.analysis.ParserTest.TestSubqueries(), com.cloudera.impala.analysis.ParserTest.TestTimestampArithmeticExprs(), com.cloudera.impala.analysis.ParserTest.TestUnion(), com.cloudera.impala.analysis.ParserTest.TestUse(), com.cloudera.impala.analysis.ParserTest.TestValuesStmt(), com.cloudera.impala.analysis.ParserTest.TestVariadicCreateFunctions(), com.cloudera.impala.analysis.ParserTest.TestWhereClause(), com.cloudera.impala.analysis.ParserTest.TestWithClause(), and com.cloudera.impala.analysis.ParserTest.TypeDefsError().

void com.cloudera.impala.analysis.ParserTest.ParserError ( String  stmt)
inline

Asserts if stmt parses fine.

Parameters
stmt

Definition at line 101 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParserError().

Object com.cloudera.impala.analysis.ParserTest.ParsesOk ( String  stmt)
inline

Asserts in case of parser error.

Definition at line 43 of file ParserTest.java.

References gen_ir_descriptions.parser.

Referenced by com.cloudera.impala.analysis.ParserTest.ParsesOk(), com.cloudera.impala.analysis.ParserTest.TestAggregateExprs(), com.cloudera.impala.analysis.ParserTest.TestAlias(), com.cloudera.impala.analysis.ParserTest.TestAlterTableAddPartition(), com.cloudera.impala.analysis.ParserTest.TestAlterTableAddReplaceColumns(), com.cloudera.impala.analysis.ParserTest.TestAlterTableChangeColumn(), com.cloudera.impala.analysis.ParserTest.TestAlterTableDropColumn(), com.cloudera.impala.analysis.ParserTest.TestAlterTableDropPartition(), com.cloudera.impala.analysis.ParserTest.TestAlterTableOrViewRename(), com.cloudera.impala.analysis.ParserTest.TestAlterTableSet(), com.cloudera.impala.analysis.ParserTest.TestAlterView(), com.cloudera.impala.analysis.ParserTest.TestAnalyticExprs(), com.cloudera.impala.analysis.ParserTest.TestArithmeticExprs(), com.cloudera.impala.analysis.ParserTest.TestBetweenPredicate(), com.cloudera.impala.analysis.ParserTest.TestCaseExprs(), com.cloudera.impala.analysis.ParserTest.TestCastExprs(), com.cloudera.impala.analysis.ParserTest.testCompoundPredicates(), com.cloudera.impala.analysis.ParserTest.TestCompoundPredicates(), com.cloudera.impala.analysis.ParserTest.TestComputeDropStats(), com.cloudera.impala.analysis.ParserTest.TestComputeStats(), com.cloudera.impala.analysis.ParserTest.TestComputeStatsIncremental(), com.cloudera.impala.analysis.ParserTest.TestConditionalExprs(), com.cloudera.impala.analysis.ParserTest.TestCreateAggregate(), com.cloudera.impala.analysis.ParserTest.TestCreateDatabase(), com.cloudera.impala.analysis.ParserTest.TestCreateDataSource(), com.cloudera.impala.analysis.ParserTest.TestCreateDropRole(), com.cloudera.impala.analysis.ParserTest.TestCreateFunction(), com.cloudera.impala.analysis.ParserTest.TestCreateTable(), com.cloudera.impala.analysis.ParserTest.TestCreateTableAsSelect(), com.cloudera.impala.analysis.ParserTest.TestCreateView(), com.cloudera.impala.analysis.ParserTest.TestDescribe(), com.cloudera.impala.analysis.ParserTest.TestDrop(), com.cloudera.impala.analysis.ParserTest.TestDropDataSource(), com.cloudera.impala.analysis.ParserTest.TestExplain(), com.cloudera.impala.analysis.ParserTest.TestFromClause(), com.cloudera.impala.analysis.ParserTest.TestFunctionCallExprs(), com.cloudera.impala.analysis.ParserTest.TestGrantRevokePrivilege(), com.cloudera.impala.analysis.ParserTest.TestGrantRevokeRole(), com.cloudera.impala.analysis.ParserTest.TestGroupBy(), com.cloudera.impala.analysis.ParserTest.TestHaving(), com.cloudera.impala.analysis.ParserTest.TestIdentQuoting(), com.cloudera.impala.analysis.ParserTest.TestInPredicate(), com.cloudera.impala.analysis.ParserTest.testInsert(), com.cloudera.impala.analysis.ParserTest.TestInsertHints(), com.cloudera.impala.analysis.ParserTest.TestJoinHints(), com.cloudera.impala.analysis.ParserTest.TestLimit(), com.cloudera.impala.analysis.ParserTest.TestLiteralExprs(), com.cloudera.impala.analysis.ParserTest.testLiteralTruthValues(), com.cloudera.impala.analysis.ParserTest.TestLoadData(), com.cloudera.impala.analysis.ParserTest.TestMultilineComment(), com.cloudera.impala.analysis.ParserTest.TestNoFromClause(), com.cloudera.impala.analysis.ParserTest.TestNumericLiteralMinMaxValues(), com.cloudera.impala.analysis.ParserTest.TestOffset(), com.cloudera.impala.analysis.ParserTest.TestOrderBy(), com.cloudera.impala.analysis.ParserTest.TestPredicates(), com.cloudera.impala.analysis.ParserTest.TestResetMetadata(), com.cloudera.impala.analysis.ParserTest.TestSelect(), com.cloudera.impala.analysis.ParserTest.TestSelectListHints(), com.cloudera.impala.analysis.ParserTest.TestSemiColon(), com.cloudera.impala.analysis.ParserTest.TestSet(), com.cloudera.impala.analysis.ParserTest.TestShow(), com.cloudera.impala.analysis.ParserTest.TestShowCreateTable(), com.cloudera.impala.analysis.ParserTest.TestShowGrantRole(), com.cloudera.impala.analysis.ParserTest.TestShowRoles(), com.cloudera.impala.analysis.ParserTest.TestSinglelineComment(), com.cloudera.impala.analysis.ParserTest.TestSlotRef(), com.cloudera.impala.analysis.ParserTest.TestStar(), com.cloudera.impala.analysis.ParserTest.testStringLiteral(), com.cloudera.impala.analysis.ParserTest.TestSubqueries(), com.cloudera.impala.analysis.ParserTest.TestTimestampArithmeticExprs(), com.cloudera.impala.analysis.ParserTest.TestUnion(), com.cloudera.impala.analysis.ParserTest.TestUse(), com.cloudera.impala.analysis.ParserTest.TestValuesStmt(), com.cloudera.impala.analysis.ParserTest.TestVariadicCreateFunctions(), com.cloudera.impala.analysis.ParserTest.TestWhereClause(), com.cloudera.impala.analysis.ParserTest.TestWithClause(), and com.cloudera.impala.analysis.ParserTest.TypeDefsParseOk().

public<C extends Expr> Object com.cloudera.impala.analysis.ParserTest.ParsesOk ( String  selectStmtSql,
Class< C >  cl 
)
inlinepackage

Attempts to parse the given select statement, and asserts in case of parser error. Also asserts that the first select-list expression is of given class.

Definition at line 62 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParsesOk().

void com.cloudera.impala.analysis.ParserTest.TestAggregateExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlias ( )
inline

Tests table and column aliases which can specified as identifiers (quoted or unquoted) or string literals (single or double quoted).

Definition at line 132 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParserError(), and com.cloudera.impala.analysis.ParserTest.ParsesOk().

void com.cloudera.impala.analysis.ParserTest.TestAlterTableAddPartition ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterTableAddReplaceColumns ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterTableChangeColumn ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterTableDropColumn ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterTableDropPartition ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterTableOrViewRename ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterTableSet ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAlterView ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestAnalyticExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestArithmeticExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestBetweenPredicate ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCaseExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCastExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.testCompoundPredicates ( String  andStr,
String  orStr,
String  notStr 
)
inlineprivate
void com.cloudera.impala.analysis.ParserTest.TestComputeDropStats ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestComputeStats ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestComputeStatsIncremental ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestConditionalExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateAggregate ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateDatabase ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateDataSource ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateDropRole ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateFunction ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateTable ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateTableAsSelect ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestCreateView ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestDescribe ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestDrop ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestDropDataSource ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestExplain ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestFromClause ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestFunctionCallExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestGetErrorMsg ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestGrantRevokePrivilege ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestGrantRevokeRole ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestGroupBy ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestHaving ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestIdentQuoting ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestInPredicate ( )
inline
void com.cloudera.impala.analysis.ParserTest.testInsert ( )
inlineprivate
void com.cloudera.impala.analysis.ParserTest.TestInsert ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestInsertHints ( String  stmt,
String...  expectedHints 
)
inlineprivate

Parses stmt and checks that the insert hints stmt are the expected hints.

Definition at line 276 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParsesOk().

Referenced by com.cloudera.impala.analysis.ParserTest.TestPlanHints().

void com.cloudera.impala.analysis.ParserTest.TestJoinHints ( String  stmt,
String...  expectedHints 
)
inlineprivate

Parses stmt and checks that the all table refs in stmt have the expected join hints. The expectedHints contains the hints of all table refs from left to right (starting with the second tableRef because the first one cannot have hints).

Definition at line 249 of file ParserTest.java.

References com.cloudera.impala.analysis.SelectStmt.getTableRefs(), and com.cloudera.impala.analysis.ParserTest.ParsesOk().

Referenced by com.cloudera.impala.analysis.ParserTest.TestPlanHints().

void com.cloudera.impala.analysis.ParserTest.TestLimit ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestLiteralExprs ( )
inline
void com.cloudera.impala.analysis.ParserTest.testLiteralTruthValues ( String  andStr,
String  orStr,
String  notStr 
)
inlineprivate
void com.cloudera.impala.analysis.ParserTest.TestLoadData ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestMultilineComment ( )
inline

Various test cases for (multiline) C-style comments.

Definition at line 183 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParserError(), and com.cloudera.impala.analysis.ParserTest.ParsesOk().

void com.cloudera.impala.analysis.ParserTest.TestNoFromClause ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestNumericLiteralMinMaxValues ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestOffset ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestOrderBy ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestPredicates ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestResetMetadata ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestSelect ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestSelectListHints ( String  stmt,
String...  expectedHints 
)
inlineprivate

Parses stmt and checks that the select-list plan hints in stmt are the expected hints.

Definition at line 266 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParsesOk().

Referenced by com.cloudera.impala.analysis.ParserTest.TestPlanHints().

void com.cloudera.impala.analysis.ParserTest.TestSemiColon ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestSet ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestShow ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestShowCreateTable ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestShowGrantRole ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestShowRoles ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestSinglelineComment ( )
inline

Various test cases for one line comment style (starts with –).

Definition at line 228 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParserError(), and com.cloudera.impala.analysis.ParserTest.ParsesOk().

void com.cloudera.impala.analysis.ParserTest.TestSlotRef ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestStar ( )
inline
void com.cloudera.impala.analysis.ParserTest.testStringLiteral ( String  s)
inlineprivate
void com.cloudera.impala.analysis.ParserTest.TestSubqueries ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestTimestampArithmeticExprs ( )
inline

We have three variants of timestamp arithmetic exprs, as in MySQL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html (section #function_date-add)

  1. Non-function-call like version, e.g., 'a + interval b timeunit'
  2. Beginning with an interval (only for '+'), e.g., 'interval b timeunit + a'
  3. Function-call like version, e.g., date_add(a, interval b timeunit)

Definition at line 1080 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParserError(), and com.cloudera.impala.analysis.ParserTest.ParsesOk().

void com.cloudera.impala.analysis.ParserTest.TestTypes ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestUnion ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestUse ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestValuesStmt ( ) throws AnalysisException
inline
void com.cloudera.impala.analysis.ParserTest.TestVariadicCreateFunctions ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestWhereClause ( )
inline
void com.cloudera.impala.analysis.ParserTest.TestWithClause ( ) throws AnalysisException
inline
void com.cloudera.impala.analysis.ParserTest.TypeDefsError ( String...  typeDefs)
inlineprivate

Asserts that the given typeDefs fail to parse.

Definition at line 2370 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParserError().

Referenced by com.cloudera.impala.analysis.ParserTest.TestTypes().

void com.cloudera.impala.analysis.ParserTest.TypeDefsParseOk ( String...  typeDefs)
inlineprivate

Wraps the given typeDefs in a CREATE TABLE and CAST and runs ParsesOk(). Also tests that the type is parsed correctly in ARRAY, MAP, and STRUCT types.

Definition at line 2356 of file ParserTest.java.

References com.cloudera.impala.analysis.ParserTest.ParsesOk().

Referenced by com.cloudera.impala.analysis.ParserTest.TestTypes().

Member Data Documentation

final String [] com.cloudera.impala.analysis.ParserTest.operands_
staticprivate
Initial value:
=
new String[] {"i", "5", "true", "NULL", "'a'", "(1.5 * 8)" }

Definition at line 37 of file ParserTest.java.

Referenced by com.cloudera.impala.analysis.ParserTest.TestArithmeticExprs(), and com.cloudera.impala.analysis.ParserTest.TestPredicates().


The documentation for this class was generated from the following file: