ColumnType#

from tmlt.analytics import ColumnType
class tmlt.analytics.ColumnType(value)#

Bases: Enum

The supported SQL92 column types used by Tumult Analytics.

Support for Spark data types is currently as follows.

Spark type

Corresponding Tumult Analytics type

LongType

INTEGER

IntegerType

INTEGER

DoubleType

DECIMAL

FloatType

DECIMAL

StringType

VARCHAR

DateType

DATE

TimestampType

TIMESTAMP

Other Spark types

Not supported in Tumult Analytics

Columns with unsupported types must be removed or converted to supported ones before loading the data into a Session.

INTEGER = <class 'int'>#

Integer column type.

DECIMAL = <class 'float'>#

Floating-point column type.

VARCHAR = <class 'str'>#

String column type.

DATE = <class 'datetime.date'>#

Date column type.

TIMESTAMP = <class 'datetime.datetime'>#

Timestamp column type.

__str__()#

Return a printable version of a ColumnType.

Return type:

str

__repr__()#

Return a string representation of a ColumnType.

Return type:

str