Skip to main content

Apache Impala Reference

Authentication options and data type handling for Impala connections.

Authentication

VariableExampleDescription
DATACONTRACT_IMPALA_USERNAMEanalytics_userUsername
DATACONTRACT_IMPALA_PASSWORDmysecretpasswordPassword
DATACONTRACT_IMPALA_USE_SSLtrueWhether to use SSL (defaults to true)
DATACONTRACT_IMPALA_AUTH_MECHANISMLDAPAuthentication mechanism (defaults to LDAP)
DATACONTRACT_IMPALA_USE_HTTP_TRANSPORTtrueWhether to use HTTP transport (defaults to true)
DATACONTRACT_IMPALA_HTTP_PATHcliserviceHTTP path for the Impala service (defaults to cliservice)

host, port, and database come from the contract's servers block.

Data types

Importing

There is no direct Impala importer. Import a SHOW CREATE TABLE DDL with datacontract import sql --dialect spark (Impala DDL is Hive-compatible): STRING/VARCHAR/CHARstring, INT/BIGINT/SMALLINT/TINYINTinteger, FLOAT/DOUBLE/DECIMALnumber, BOOLEANboolean, DATEdate, TIMESTAMPtimestamp, ARRAY<...>array, STRUCT<...>object, BINARYstring (format binary), MAP<...> → no logical type.

Testing

Impala does not support native type introspection — the declared physicalType is not compared against the catalog. Instead, the logicalType is checked by category (Check that field x has type y): the actual column type is normalized to one of the nine ODCS categories and compared, with integer and number treated as compatible.