SqlPrimitiveType¶
SqlPrimitiveType
is a SqlType and represents the following primitive types:
BIGINT
BOOLEAN
BYTES
DATE
DOUBLE
INT
(a synonym ofINTEGER
)INTEGER
STRING
TIME
TIMESTAMP
VARCHAR
(a synonym ofSTRING
)
Demo¶
import io.confluent.ksql.schema.ksql.types._
val string = SqlPrimitiveType.of(SqlBaseType.STRING)
assert(string.toString == "STRING")