ibis.expr.api.ValueExpr.cast¶
-
ValueExpr.
cast
(arg, target_type)¶ Cast value(s) to indicated data type. Values that cannot be successfully casted
Parameters: target_type : data type name Returns: cast_expr : ValueExpr Notes
Ibis uses its own type aliases that map onto database types. See, for example, the correspondence between Ibis type names and Impala type names:
Ibis type Impala Type ~~~~~~~~~ ~~~~~~~~~~~ int8 TINYINT int16 SMALLINT int32 INT int64 BIGINT float FLOAT double DOUBLE boolean BOOLEAN string STRING timestamp TIMESTAMP decimal(p, s) DECIMAL(p,s)