Expand description
Utilities for casting scalar literals to different data types
This module contains functions for casting ScalarValue literals to different data types, originally extracted from the optimizerβs unwrap_cast module to be shared between logical and physical layers.
FunctionsΒ§
- cast_
between_ πtimestamp - Cast a timestamp value from one unit to another
- is_
supported_ πbinary_ type - is_
supported_ πdictionary_ type - Returns true if unwrap_cast_in_comparison supports casting this value as a dictionary
- is_
supported_ πnumeric_ type - Returns true if unwrap_cast_in_comparison support this numeric type
- is_
supported_ πstring_ type - Returns true if unwrap_cast_in_comparison supports casting this value as a string
- is_
supported_ type - Returns true if unwrap_cast_in_comparison supports this data type
- try_
cast_ πbinary - try_
cast_ πdictionary - Attempt to cast to/from a dictionary type by wrapping/unwrapping the dictionary
- try_
cast_ literal_ to_ type - Convert a literal value from one data type to another
- try_
cast_ πnumeric_ literal - Convert a numeric value from one numeric data type to another
- try_
cast_ πstring_ literal