You are viewing documentation about an older version (1.1.0). View latest version

Data TypesΒΆ

This package contains all Snowpark logical types.

Classes/Type Hints

ArrayType([element_type])

Array data type.

BinaryType()

Binary data type.

BooleanType()

Boolean data type.

ByteType()

Byte data type.

ColumnIdentifier(normalized_name)

Represents a column identifier.

DataType()

The base class of Snowpark data types.

DateType()

Date data type.

DecimalType([precision, scale])

Decimal data type.

DoubleType()

Double data type.

FloatType()

Float data type.

Geography

The type hint for annotating Geography data when registering UDFs.

GeographyType()

Geography data type.

IntegerType()

Integer data type.

LongType()

Long integer data type.

MapType([key_type, value_type])

Map data type.

NullType()

Represents a null type.

PandasDataFrameType(col_types)

Pandas DataFrame data type.

PandasSeriesType(element_type)

Pandas Series data type.

ShortType()

Short integer data type.

StringType()

String data type.

StructField(column_identifier, datatype[, ...])

Represents the content of StructField.

StructType(fields)

Represents a table schema.

TimeType()

Time data type.

TimestampType()

Timestamp data type.

Variant

The type hint for annotating Variant data when registering UDFs.

VariantType()

Variant data type.