Polars SQL Differences¶
This page records SQL syntax differences that are relevant when using Polars SQL. It includes equivalent syntax that uses a different name or argument order, and SQL documentation features that are not documented as supported in Polars SQL.
The comparison baseline is the PrestoDB documentation imported from
presto-docs/src/main/sphinx on branch release-0.298 at commit
04cc4d6e1352c64cdd66e474d228235dd6c81942. Entries on this page describe
where Polars SQL documentation intentionally differs from that PrestoDB
documentation baseline.
Equivalent Syntax¶
These rows are strict equivalents: the Polars SQL form provides the same documented capability with a different name, alias, short form, or argument order.
Area |
Source form |
Polars SQL form |
Notes |
Evidence |
|---|---|---|---|---|
Math |
|
|
Factorial function. Values outside the supported integer factorial range return |
|
Math |
|
|
Base 10 logarithm. |
|
String |
|
|
Character-count aliases. |
|
String |
|
|
Character from Unicode code point. |
|
String |
|
|
Prefix check. |
|
String |
|
|
Suffix check. |
|
String |
|
|
One-based substring position. |
|
String |
|
|
Positive-position substring extraction. |
|
Date and time |
|
|
Alias of |
|
Date and time |
|
|
Day-unit short form. |
|
Date and time |
|
|
Same difference direction: |
|
Unsupported SQL Features¶
Each row keeps the source page, the removed feature, the reason, the verification method, and the evidence .test file.
Function families removed from the function index¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
lambda functions, bitwise functions, decimal-specific semantics, binary functions, JSON functions, noisy aggregate functions, array functions, map functions, URL extraction/encoding functions, IP address functions, geospatial functions, HyperLogLog, KHyperLogLog, QDigest, UUID, TDigest, color functions, session information functions, Teradata compatibility functions, internationalization functions, SetDigest, sketch, Pinot pushdown functions, plugin-loaded function listing, and table functions as inherited from the source documentation. |
These function families do not have verified support for these scalar, aggregate, or window features. Some nearby Polars SQL-specific functions exist, but they are not the same documented function families and are not listed as equivalent syntax. |
Polars SQL smoke tests for retained function families and unsupported boundary checks for representative removed function families. |
|
Comparison features removed from the comparison page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
These forms do not have verified support. Polars SQL currently documents ordinary comparison operators, |
Polars SQL tests for retained comparison behavior, unsupported boundary checks for removed forms, and manual verification of incomplete quantified comparison boolean semantics. |
|
Conditional features removed from the conditional page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL accepts |
Polars SQL test for retained conditional expressions and unsupported boundary check for |
|
Conversion features removed from the conversion page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not have verified |
Polars SQL test for retained |
|
|
|
Polars SQL does not have a verified scalar function for this data-size parser. |
Polars SQL unsupported function check. |
|
|
|
Polars SQL does not have a verified scalar function for returning expression type names. |
Polars SQL unsupported function check. |
|
|
Whitespace-tolerant string casts to |
Polars SQL does not support |
Polars SQL retained and unsupported cast boundary checks. |
|
Mathematical features removed from the math page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not have verified scalar functions or compatible function-name mappings for these functions. Direct Polars SQL checks showed |
Polars SQL unsupported function checks. |
|
|
Sparse-vector and array-vector math functions |
Polars SQL does not have verified scalar functions for these vector functions. |
Polars SQL unsupported function check. |
|
|
Probability CDF and inverse CDF functions, including |
Polars SQL does not have verified scalar functions for the probability distribution functions. |
Polars SQL unsupported function checks. |
|
|
Wilson interval functions |
Polars SQL does not have verified scalar functions for these statistical functions. |
Polars SQL unsupported function check. |
|
|
Hyperbolic and floating-point helper functions |
Polars SQL does not have verified scalar functions for these floating-point helper functions. |
Polars SQL unsupported function checks. |
|
String features removed from the string page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not have verified compatible mappings for these names. |
Polars SQL unsupported function checks. |
|
|
|
Polars SQL does not have verified compatible implementations for these search and split functions. |
Polars SQL unsupported function checks. |
|
|
|
Polars SQL does not have verified scalar functions for these text similarity, prefix, and stemming functions. |
Polars SQL unsupported function checks. |
|
|
|
Polars SQL does not have verified compatible behavior for these forms. In particular, direct Polars SQL verification showed a negative substring start returns an empty string instead of using the source end-relative interpretation. |
Polars SQL unsupported or incompatible behavior checks. |
|
|
Unicode functions |
Polars SQL does not have verified scalar functions for these Unicode and binary conversion functions. |
Polars SQL unsupported function checks. |
|
Regexp features removed from the regexp page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not have verified scalar mappings for these regexp functions. Array-returning forms are also outside the verified Polars SQL scalar documentation scope. |
Polars SQL unsupported function checks. |
|
|
Two-argument |
Polars SQL only has verified support for |
Polars SQL unsupported function checks. |
|
|
Java |
Polars SQL regexp replacement does not follow source Java |
Polars SQL incompatible behavior check. |
|
Date and time features removed from the datetime page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
date/time arithmetic operators over |
Polars SQL does not have verified compatible interval arithmetic or timestamp-with-time-zone operator support. |
Polars SQL unsupported syntax checks. |
|
|
|
Polars SQL only has verified support for |
Polars SQL unsupported function checks. |
|
|
|
Polars SQL does not have verified scalar functions for these date/time conversion helpers. |
Polars SQL unsupported function checks. |
|
|
|
Polars SQL does not have verified scalar functions for these truncation, duration, and formatting functions. |
Polars SQL unsupported function checks. |
|
|
extraction fields and aliases |
Polars SQL only has verified compatible extraction for |
Polars SQL unsupported or incompatible extraction checks. |
|
Aggregate features removed from the aggregate page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
General aggregates |
Polars SQL only has verified support for the scalar-valued general aggregate functions retained on the aggregate page. |
Polars SQL retained aggregate checks and representative unsupported function checks. |
|
|
|
Polars SQL does not have verified compatible aggregate functions for these value-by-sort-key functions. |
Polars SQL unsupported function check. |
|
|
Top-N aggregate forms |
Direct Polars SQL verification showed these forms return scalar |
Polars SQL incompatible behavior check. |
|
|
Bitwise aggregate functions |
Polars SQL does not have verified compatible aggregate functions for these bitwise aggregate functions. |
Polars SQL unsupported function checks. |
|
|
Map aggregate functions |
Polars SQL does not have verified map-returning aggregate support for these functions. |
Polars SQL unsupported function check. |
|
|
Approximate aggregate functions beyond |
Polars SQL only has verified compatible support for |
Polars SQL retained |
|
|
Statistical aggregates |
Polars SQL does not have verified compatible aggregate functions for these statistical functions. Verified statistical support is limited to the covariance, correlation, regression, variance, and standard-deviation functions retained on the aggregate page. |
Polars SQL retained statistical aggregate checks and unsupported function checks. |
|
|
Classification metrics aggregate functions, differential entropy aggregate functions, reservoir sample aggregate functions, and noisy aggregate functions. |
Polars SQL does not have verified compatible aggregate functions for these aggregate families. |
Polars SQL unsupported function checks. |
|
Window features removed from the window page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not support |
Polars SQL unsupported frame check. |
|
|
Window examples based on |
Polars SQL does not have verified compatible array-returning window aggregate behavior for |
Polars SQL unsupported function check. |
|
Data types removed from the data types page¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not have verified |
Polars SQL unsupported cast check. |
|
|
Fixed-precision |
Polars SQL can analyze some decimal forms, but direct Polars SQL verification of |
Polars SQL manual execution-failure observation for |
|
|
Fixed-length |
Polars SQL accepts |
Polars SQL incompatible behavior check. |
|
|
|
Polars SQL does not have verified compatible binary or JSON value support. |
Polars SQL unsupported literal/type checks. |
|
|
|
Polars SQL only has verified date/time support for |
Polars SQL unsupported time-zone/interval checks and datetime-page unsupported time-zone checks. |
|
|
Structural types |
Polars SQL does not have verified compatible structural value support for these types. |
Polars SQL unsupported expression/type checks. |
|
|
Network, UUID, sketch, and geospatial types including |
Polars SQL does not have verified compatible support for these SQL-specific value and sketch types. |
Polars SQL unsupported type checks for representative network and UUID literals. |
|
Reserved-keyword page differences¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
source reserved keyword table and SQL:2016/SQL-92 status columns. |
Polars SQL uses its own parser grammar and reserved keyword set. The retained page lists Polars SQL parser reserved keywords instead of source parser/standard-status table. |
Polars SQL checks for quoted reserved identifiers, unquoted reserved identifier rejection, and non-reserved keyword identifiers. |
|
SQL statement syntax removed from the SQL chapter¶
Source page |
Removed feature |
Reason |
Verification |
Evidence |
|---|---|---|---|---|
|
|
Polars SQL does not have verified support for altering SQL function metadata. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL does not have verified materialized-view property alteration support. |
Polars SQL unsupported statement check. |
|
|
|
Schema rename is not supported. |
Polars SQL unsupported statement check. |
|
|
|
Direct Polars SQL verification showed accepted table/column alteration forms do not produce the documented source effects reliably, and several SQL subforms are unsupported outright. The page is removed rather than documenting partially accepted but incompatible behavior. |
Polars SQL incompatible behavior checks for add-column, rename-column, and rename-table forms, plus unsupported checks for representative unsupported subforms. |
|
|
connector-specific |
Polars SQL has verified support only for plain |
Polars SQL retained plain |
|
|
|
Polars SQL does not have verified support for connector or stored-procedure calls. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL does not have verified support for explicit transaction control SQL. |
Polars SQL unsupported statement checks. |
|
|
|
Polars SQL does not have verified support for creating user-defined SQL functions. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL does not have verified support for role management. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL can create schemas, but direct verification showed |
Polars SQL retained |
|
|
|
Polars SQL has verified support for ordinary column definitions, |
Polars SQL retained |
|
|
CTAS |
Polars SQL has verified support for basic |
Polars SQL retained CTAS check plus incompatible |
|
|
|
Polars SQL does not support vector-index DDL. |
Polars SQL unsupported statement check. |
|
|
View security modes |
View security clauses are accepted but ignored; views use invoker-equivalent behavior. The verified page documents only stored query behavior and |
Polars SQL retained |
|
|
|
Materialized-view creation is not supported. |
Polars SQL unsupported statement check. |
|
|
|
Prepared-statement lifecycle commands are not supported. |
Polars SQL unsupported statement check. |
|
|
|
|
Polars SQL unsupported statement check against an existing table. |
|
|
|
Polars SQL does not support executable prepared-statement control statements, so prepared-statement input/output inspection is not supported. |
Polars SQL unsupported statement checks. |
|
|
|
Polars SQL does not have verified support for dropping user-defined SQL functions. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL does not have verified support for role management. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL can drop existing schemas, but direct verification showed |
Polars SQL retained |
|
|
|
Materialized-view DDL is not supported. |
Polars SQL unsupported statement check. |
|
|
|
Prepared-statement execution is not supported. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL has verified support for basic |
Polars SQL retained basic |
|
|
|
Polars SQL does not support |
Polars SQL unsupported/incompatible statement check. |
|
|
Privilege grants and role grants. |
Polars SQL does not have verified support for privilege or role-management SQL. |
Polars SQL unsupported statement checks. |
|
|
|
|
Polars SQL unsupported statement check. |
|
|
|
Prepared-statement lifecycle commands are not supported. |
Polars SQL unsupported statement check. |
|
|
|
Materialized-view refresh is not supported. |
Polars SQL unsupported statement check. |
|
|
|
Polars SQL does not have verified support for session-property control statements. |
Polars SQL unsupported statement check. |
|
|
Privilege revocation and role revocation. |
Polars SQL does not have verified support for privilege or role-management SQL. |
Polars SQL unsupported statement checks. |
|
|
Explicit transaction rollback syntax |
Polars SQL does not have verified support for explicit transaction control SQL. |
Polars SQL unsupported statement checks. |
|
|
|
Polars SQL reports recursive |
Polars SQL unsupported query check. |
|
|
|
Polars SQL accepts the syntax, but verification showed the sample ratio is ignored, so the sampling behavior is not documented as supported. |
Polars SQL incompatible behavior check. |
|
|
|
Polars SQL does not have verified support for array or map unnesting. |
Polars SQL unsupported query check. |
|
|
|
verified Polars SQL behavior fails for a correlated |
Polars SQL unsupported query check. |
|
|
|
Polars SQL verification covered distinct set semantics for |
Polars SQL retained distinct set-operation checks. |
|
|
|
Polars SQL does not have verified support for role-management SQL. |
Polars SQL unsupported statement checks. |
|
|
|
Polars SQL does not have verified support for session-property control statements. |
Polars SQL unsupported statement checks. |
|
|
metadata inspection |
Polars SQL does not have verified support for these metadata inspection statements. |
Polars SQL unsupported statement checks, including checks with an existing table and view for |
|
|
|
Polars SQL does not have verified support for explicit transaction control SQL. |
Polars SQL unsupported statement checks. |
|
|
|
|
Polars SQL unsupported statement check plus retained-row count check. |
|
|
|
|
Polars SQL unsupported statement checks. |
|