Skip to main content
Version: Next

SQL reference

ArkFlow's SQL processor is powered by Apache DataFusion. Use it to filter, project, aggregate, and reshape columnar batches inside a pipeline — with window functions for event-time analytics and user-defined functions when the built-ins are not enough.

SectionContents
Data typesSupported SQL types and their Arrow equivalents.
Operators and literalsArithmetic, comparison, and logical operators.
SELECTQuery syntax, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT.
SubqueriesScalar, IN, and EXISTS subqueries.
Aggregate functionscount, sum, avg, and friends.
Window functionsOVER clauses, ranking, and analytic functions.
Scalar functionsThe full built-in function catalog.
Special functionsEncoding, time, and utility functions.
UDFsRegistering and calling user-defined functions.

A FROM batch clause refers to the current Arrow batch flowing through the pipeline — see the SQL processor for configuration and semantics, and the recipes for end-to-end usage.