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

Public Member Functions

void TestColSchema () throws CatalogException
 
void TestPartitions () throws CatalogException
 
void testStats () throws TableLoadingException
 
void testColStatsColTypeMismatch () throws Exception
 
void testInternalHBaseTable () throws CatalogException
 
void testDatabaseDoesNotExist ()
 
void testCreateTableMetadata () throws CatalogException
 
void testLoadingUnsupportedTableTypes () throws CatalogException
 
void TestTableWithBadEscapeChar () throws CatalogException
 
void TestUdf () throws CatalogException
 

Private Member Functions

void checkTableCols (Db db, String tblName, int numClusteringCols, String[] colNames, Type[] colTypes) throws TableLoadingException
 
void checkHBaseTableCols (Db db, String hiveTableName, String hbaseTableName, String[] hiveColNames, String[] colFamilies, String[] colQualifiers, Type[] colTypes) throws TableLoadingException
 
void assertStatsUnknown (Column column)
 
List< String > getFunctionSignatures (String db) throws DatabaseNotFoundException
 

Static Private Attributes

static CatalogServiceCatalog catalog_
 

Detailed Description

Definition at line 29 of file CatalogTest.java.

Member Function Documentation

void com.cloudera.impala.catalog.CatalogTest.assertStatsUnknown ( Column  column)
inlineprivate
void com.cloudera.impala.catalog.CatalogTest.checkHBaseTableCols ( Db  db,
String  hiveTableName,
String  hbaseTableName,
String[]  hiveColNames,
String[]  colFamilies,
String[]  colQualifiers,
Type[]  colTypes 
) throws TableLoadingException
inlineprivate
void com.cloudera.impala.catalog.CatalogTest.checkTableCols ( Db  db,
String  tblName,
int  numClusteringCols,
String[]  colNames,
Type[]  colTypes 
) throws TableLoadingException
inlineprivate
List<String> com.cloudera.impala.catalog.CatalogTest.getFunctionSignatures ( String  db) throws DatabaseNotFoundException
inlineprivate

Definition at line 517 of file CatalogTest.java.

Referenced by com.cloudera.impala.catalog.CatalogTest.TestUdf().

void com.cloudera.impala.catalog.CatalogTest.testColStatsColTypeMismatch ( ) throws Exception
inline

Verifies that updating column stats data for a type that isn't compatible with the column type results in the stats being set to "unknown". This is a regression test for IMPALA-588, where this used to result in a Preconditions failure.

Definition at line 395 of file CatalogTest.java.

References com.cloudera.impala.catalog.CatalogTest.assertStatsUnknown(), com.cloudera.impala.catalog.CatalogTest.catalog_, com.cloudera.impala.catalog.Table.getColumn(), and com.cloudera.impala.catalog.CatalogServiceCatalog.getOrLoadTable().

void com.cloudera.impala.catalog.CatalogTest.testCreateTableMetadata ( ) throws CatalogException
inline

Definition at line 461 of file CatalogTest.java.

void com.cloudera.impala.catalog.CatalogTest.testDatabaseDoesNotExist ( )
inline

Definition at line 455 of file CatalogTest.java.

void com.cloudera.impala.catalog.CatalogTest.testInternalHBaseTable ( ) throws CatalogException
inline
void com.cloudera.impala.catalog.CatalogTest.testLoadingUnsupportedTableTypes ( ) throws CatalogException
inline
void com.cloudera.impala.catalog.CatalogTest.TestPartitions ( ) throws CatalogException
inline

Member Data Documentation


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