Skip to main content

Module expressions

Module expressions 

Source

StructsΒ§

FunctionInvocation
The fields shared by every Substrait function call - ScalarFunction, AggregateFunction, and WindowFunction - that render as name#anchor(args, options).
Reference

EnumsΒ§

PrecisionFormatError πŸ”’

FunctionsΒ§

days_to_date_string πŸ”’
Convert days since Unix epoch to date string
duration_from_precision_units πŸ”’
Convert a value in precision units, to a chrono::Duration. Precision 12 (picoseconds) is truncated to nanoseconds: chrono can’t represent sub-nanosecond resolution.
fractional_spec πŸ”’
The chrono fractional-seconds format specifier for a precision, or "" for precision 0 (whole seconds, no fractional part). A fixed-width specifier is used so the rendered fractional digits match the declared precision exactly. Precision 12 renders at nanosecond width, matching the truncation in duration_from_precision_units.
is_default_for_syntax πŸ”’
Whether this type is the default interpretation for its value syntax.
picosecond_truncation_warning πŸ”’
Returns the diagnostic for truncating a picosecond value to nanoseconds.
precision_time_to_string πŸ”’
Convert a value in precision units since midnight, to a time-of-day string. Errors if value falls outside a single day: NaiveTime + Duration wraps modulo 24 hours, which would otherwise silently misrepresent the value.
precision_timestamp_to_string πŸ”’
Convert a value in precision units since the Unix epoch, to a timestamp string. Errors if value is out of chrono’s representable date range.
textify_binary
textify_enum
Write an enum value. Enums are written as &<identifier>, if the string is a valid identifier; otherwise, they are written as &'<escaped_string>'.
unimplemented_literal πŸ”’
Write an error token for a literal type that hasn’t been implemented yet.
write_literal_type_suffix πŸ”’
The type suffix for a literal (e.g., "i32", "fp64", "date"). Returns None for unimplemented types whose write_literal_value already emitted an error token.
write_literal_value πŸ”’
Write just the value portion of a literal, with no type suffix or nullability marker.
write_precision_literal πŸ”’