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(x)

fact(x)

Factorial function. Values outside the supported integer factorial range return NULL.

polars-sql-test/new_sql_doc/functions-math.test

Math

log10(x)

log(x)

Base 10 logarithm.

polars-sql-test/new_sql_doc/functions-math.test

String

length(string)

char_length(string), character_length(string)

Character-count aliases.

polars-sql-test/new_sql_doc/functions-string.test

String

chr(codepoint)

char(codepoint)

Character from Unicode code point.

polars-sql-test/new_sql_doc/functions-string.test

String

starts_with(string, prefix)

startwith(string, prefix), beginwith(string, prefix)

Prefix check.

polars-sql-test/new_sql_doc/functions-string.test

String

ends_with(string, suffix)

endwith(string, suffix)

Suffix check.

polars-sql-test/new_sql_doc/functions-string.test

String

strpos(string, substring), position(substring IN string)

find(substring, string)

One-based substring position. find returns 0 when not found.

polars-sql-test/new_sql_doc/functions-string.test

String

substr(string, start, length)

mid(string, start, length)

Positive-position substring extraction.

polars-sql-test/new_sql_doc/functions-string.test

Date and time

date_add(unit, value, timestamp)

dateadd(unit, value, timestamp)

Alias of date_add.

polars-sql-test/new_sql_doc/functions-datetime.test

Date and time

date_add('day', delta, date_expr)

date_add(date_expr, delta)

Day-unit short form.

polars-sql-test/new_sql_doc/functions-datetime.test

Date and time

date_diff(unit, timestamp1, timestamp2)

date_diff(timestamp1, timestamp2, unit), datedif(timestamp1, timestamp2, unit)

Same difference direction: timestamp2 - timestamp1.

polars-sql-test/new_sql_doc/functions-datetime.test

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

functions.rst

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.

polars-sql-test/new_sql_doc/functions-index.test

Comparison features removed from the comparison page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/comparison.rst

greatest and least scalar functions, quantified comparison predicates using ALL, ANY, or SOME, and row-value tuple IN comparisons such as (a, b) IN ((1, 2)).

These forms do not have verified support. Polars SQL currently documents ordinary comparison operators, BETWEEN, null checks, IS DISTINCT FROM, LIKE, scalar IN/NOT IN, and single-column subquery IN/NOT IN for this page. Quantified comparison syntax has partial behavior, but complete SQL boolean semantics have not been verified.

Polars SQL tests for retained comparison behavior, unsupported boundary checks for removed forms, and manual verification of incomplete quantified comparison boolean semantics.

polars-sql-test/new_sql_doc/functions-comparison.test

Conditional features removed from the conditional page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/conditional.rst

try(expression) conditional expression that catches selected runtime errors and returns NULL.

Polars SQL accepts TRY syntax in some contexts, but the behavior is not verified as supported.

Polars SQL test for retained conditional expressions and unsupported boundary check for TRY.

polars-sql-test/new_sql_doc/functions-conditional.test

Conversion features removed from the conversion page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/conversion.rst

try_cast(value AS type) returning NULL on cast failure.

Polars SQL does not have verified try_cast semantics. Direct verification of TRY_CAST('abc' AS INTEGER) evaluated like a failing ordinary CAST instead of returning NULL.

Polars SQL test for retained CAST behavior and manual unsupported boundary check for try_cast failure behavior.

polars-sql-test/new_sql_doc/functions-conversion.test

sql-functions/conversion.rst

parse_presto_data_size(string).

Polars SQL does not have a verified scalar function for this data-size parser.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-conversion.test

sql-functions/conversion.rst

typeof(expr).

Polars SQL does not have a verified scalar function for returning expression type names.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-conversion.test

sql-functions/conversion.rst

Whitespace-tolerant string casts to TINYINT and BIGINT as documented by the original conversion page.

Polars SQL does not support TINYINT as a verified cast target, and whitespace-padded strings cast to BIGINT do not match the source page behavior. The retained conversion page only documents verified whitespace handling for SMALLINT and INTEGER.

Polars SQL retained and unsupported cast boundary checks.

polars-sql-test/new_sql_doc/functions-conversion.test

Mathematical features removed from the math page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/math.rst

cbrt, e, pi, pow alias, rand, random alias and bounded random, secure_rand/secure_random, sign, to_base, from_base, truncate, and width_bucket.

Polars SQL does not have verified scalar functions or compatible function-name mappings for these functions. Direct Polars SQL checks showed pi and rand do not behave as verified numeric functions.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-math.test

sql-functions/math.rst

Sparse-vector and array-vector math functions cosine_similarity, l2_squared, and dot_product.

Polars SQL does not have verified scalar functions for these vector functions.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-math.test

sql-functions/math.rst

Probability CDF and inverse CDF functions, including beta_cdf, binomial_cdf, normal_cdf, inverse_beta_cdf, and inverse_normal_cdf.

Polars SQL does not have verified scalar functions for the probability distribution functions.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-math.test

sql-functions/math.rst

Wilson interval functions wilson_interval_lower and wilson_interval_upper.

Polars SQL does not have verified scalar functions for these statistical functions.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-math.test

sql-functions/math.rst

Hyperbolic and floating-point helper functions cosh, tanh, infinity, nan, is_finite, is_infinite, and is_nan.

Polars SQL does not have verified scalar functions for these floating-point helper functions.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-math.test

String features removed from the string page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/string.rst

bit_length and codepoint.

Polars SQL does not have verified compatible mappings for these names.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-string.test

sql-functions/string.rst

strrpos, split, split_part, split_to_map, and split_to_multimap.

Polars SQL does not have verified compatible implementations for these search and split functions. split is present in the function registry, but direct Polars SQL verification fails during analysis because the array return type is not supported by the SQL function metadata path.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-string.test

sql-functions/string.rst

hamming_distance, jarowinkler_similarity, levenshtein_distance, longest_common_prefix, and word_stem.

Polars SQL does not have verified scalar functions for these text similarity, prefix, and stemming functions.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-string.test

sql-functions/string.rst

lpad, rpad, reverse, two-argument replace, trim/ltrim/rtrim with a character set argument, bounded split, and negative-start substr/substring semantics.

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.

polars-sql-test/new_sql_doc/functions-string.test

sql-functions/string.rst

Unicode functions normalize, to_utf8, and from_utf8.

Polars SQL does not have verified scalar functions for these Unicode and binary conversion functions.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-string.test

Regexp features removed from the regexp page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/regexp.rst

regexp_extract_all, regexp_extract, regexp_like, and regexp_split.

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.

polars-sql-test/new_sql_doc/functions-regexp.test

sql-functions/regexp.rst

Two-argument regexp_replace and lambda regexp_replace.

Polars SQL only has verified support for regexp_replace(string, pattern, replacement).

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-regexp.test

sql-functions/regexp.rst

Java Pattern syntax details and invalid-pattern error behavior.

Polars SQL regexp replacement does not follow source Java Pattern behavior. Direct verification showed invalid patterns return the original string rather than producing a compatible error.

Polars SQL incompatible behavior check.

polars-sql-test/new_sql_doc/functions-regexp.test

Date and time features removed from the datetime page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/datetime.rst

date/time arithmetic operators over interval values and the AT TIME ZONE operator.

Polars SQL does not have verified compatible interval arithmetic or timestamp-with-time-zone operator support.

Polars SQL unsupported syntax checks.

polars-sql-test/new_sql_doc/functions-datetime.test

sql-functions/datetime.rst

current_time, localtime, localtimestamp, now(), current_timezone(), and date(x).

Polars SQL only has verified support for current_date and current_timestamp from this group. Date conversion is covered by explicit CAST in the conversion page.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-datetime.test

sql-functions/datetime.rst

last_day_of_month, from_iso8601_timestamp, from_iso8601_date, from_unixtime, to_iso8601, to_milliseconds, and to_unixtime.

Polars SQL does not have verified scalar functions for these date/time conversion helpers.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-datetime.test

sql-functions/datetime.rst

date_trunc, parse_duration, date_format, date_parse, format_datetime, and parse_datetime.

Polars SQL does not have verified scalar functions for these truncation, duration, and formatting functions. to_char is outside the inherited datetime function set.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-datetime.test

sql-functions/datetime.rst

extraction fields and aliases QUARTER via extract, WEEK, DAY_OF_WEEK, DOW, DAY_OF_YEAR, DOY, YEAR_OF_WEEK, YOW, TIMEZONE_HOUR, TIMEZONE_MINUTE, and convenience functions day_of_month, day_of_week, day_of_year, dow, doy, millisecond, timezone_hour, timezone_minute, week, week_of_year, year_of_week, and yow.

Polars SQL only has verified compatible extraction for YEAR, MONTH, DAY/DAY_OF_MONTH, HOUR, MINUTE, SECOND, and the convenience functions retained on the datetime page.

Polars SQL unsupported or incompatible extraction checks.

polars-sql-test/new_sql_doc/functions-datetime.test

Aggregate features removed from the aggregate page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/aggregate.rst

General aggregates array_agg, bool_and, bool_or, every, checksum, geometric_mean, interval avg, reduce_agg, set_agg, and set_union.

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-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

max_by and min_by aggregate functions.

Polars SQL does not have verified compatible aggregate functions for these value-by-sort-key functions.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

Top-N aggregate forms max(x, n) and min(x, n) that return arrays.

Direct Polars SQL verification showed these forms return scalar max(x) and min(x) values instead of compatible top-N arrays, so they are intentionally not documented as supported source behavior.

Polars SQL incompatible behavior check.

polars-sql-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

Bitwise aggregate functions bitwise_and_agg, bitwise_or_agg, and bitwise_xor_agg.

Polars SQL does not have verified compatible aggregate functions for these bitwise aggregate functions.

Polars SQL unsupported function checks.

polars-sql-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

Map aggregate functions histogram, map_agg, map_union, map_union_sum, and multimap_agg.

Polars SQL does not have verified map-returning aggregate support for these functions.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

Approximate aggregate functions beyond approx_distinct(x), including approx_distinct(x, e), approx_percentile variants, approx_set, HyperLogLog/KHyperLogLog merge and *_agg functions, qdigest_agg, numeric_histogram, and approx_most_frequent.

Polars SQL only has verified compatible support for approx_distinct(x) from this group.

Polars SQL retained approx_distinct(x) check and unsupported function checks for representative removed forms.

polars-sql-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

Statistical aggregates entropy, kurtosis, and skewness.

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.

polars-sql-test/new_sql_doc/functions-aggregate.test

sql-functions/aggregate.rst

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.

polars-sql-test/new_sql_doc/functions-aggregate.test

Window features removed from the window page

Source page

Removed feature

Reason

Verification

Evidence

sql-functions/window.rst

GROUPS window frames.

Polars SQL does not support GROUPS frames. The retained window page documents only verified ROWS and RANGE frames.

Polars SQL unsupported frame check.

polars-sql-test/new_sql_doc/functions-window.test

sql-functions/window.rst

Window examples based on array_agg and other aggregate functions removed from the aggregate page.

Polars SQL does not have verified compatible array-returning window aggregate behavior for array_agg. The retained window page documents scalar aggregate window behavior with verified examples.

Polars SQL unsupported function check.

polars-sql-test/new_sql_doc/functions-window.test

Data types removed from the data types page

Source page

Removed feature

Reason

Verification

Evidence

language/types.rst

TINYINT type.

Polars SQL does not have verified TINYINT cast or support. SMALLINT is accepted but represented by the integer type and is documented separately.

Polars SQL unsupported cast check.

polars-sql-test/new_sql_doc/language-types.test

language/types.rst

Fixed-precision DECIMAL(p, s) semantics.

Polars SQL can analyze some decimal forms, but direct Polars SQL verification of DECIMAL(10,2) output failed while reading the Decimal64 result. Precision above Polars SQL’s internal limit is rejected. The type page therefore does not document decimal behavior as supported.

Polars SQL manual execution-failure observation for DECIMAL(10,2) output and unsupported precision boundary check.

polars-sql-test/new_sql_doc/language-types.test

language/types.rst

Fixed-length CHAR(x) padding and comparison semantics.

Polars SQL accepts CHAR as a string type alias, but direct verification of CAST('abc' AS CHAR(7)) returned abc rather than a fixed-length padded value. The retained type page documents CHAR only as a string alias.

Polars SQL incompatible behavior check.

polars-sql-test/new_sql_doc/language-types.test

language/types.rst

VARBINARY and JSON value types.

Polars SQL does not have verified compatible binary or JSON value support.

Polars SQL unsupported literal/type checks.

polars-sql-test/new_sql_doc/language-types.test

language/types.rst

TIME WITH TIME ZONE, TIMESTAMP WITH TIME ZONE, and interval types.

Polars SQL only has verified date/time support for DATE, TIME without time zone, and TIMESTAMP without time zone in this page. Time-zone and interval behavior is not verified as compatible.

Polars SQL unsupported time-zone/interval checks and datetime-page unsupported time-zone checks.

polars-sql-test/new_sql_doc/language-types.test

language/types.rst

Structural types ARRAY, MAP, and ROW.

Polars SQL does not have verified compatible structural value support for these types.

Polars SQL unsupported expression/type checks.

polars-sql-test/new_sql_doc/language-types.test

language/types.rst

Network, UUID, sketch, and geospatial types including IPADDRESS, IPPREFIX, UUID, HyperLogLog, P4HyperLogLog, KHyperLogLog, SetDigest, SfmSketch, QDigest, TDigest, KLL Sketch, and geospatial types.

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.

polars-sql-test/new_sql_doc/language-types.test

Reserved-keyword page differences

Source page

Removed feature

Reason

Verification

Evidence

language/reserved.rst

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.

polars-sql-test/new_sql_doc/language-reserved.test

SQL statement syntax removed from the SQL chapter

Source page

Removed feature

Reason

Verification

Evidence

sql/alter-function.rst

ALTER FUNCTION statement for changing function null-call behavior.

Polars SQL does not have verified support for altering SQL function metadata.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-alter-function.test

sql/alter-materialized-view.rst

ALTER MATERIALIZED VIEW ... SET PROPERTIES.

Polars SQL does not have verified materialized-view property alteration support.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-alter-materialized-view.test

sql/alter-schema.rst

ALTER SCHEMA ... RENAME TO.

Schema rename is not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-alter-schema.test

sql/alter-table.rst

ALTER TABLE syntax, including table/column rename, add/drop column, constraints, not-null/default changes, table properties, and branch/tag operations.

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.

polars-sql-test/new_sql_doc/sql-alter-table.test

sql/analyze.rst

connector-specific ANALYZE ... WITH (...) properties and Hive/Iceberg partition examples.

Polars SQL has verified support only for plain ANALYZE table_name in this page. Connector-specific analyze properties and catalog/schema examples are outside Polars SQL.

Polars SQL retained plain ANALYZE check.

polars-sql-test/new_sql_doc/sql-analyze.test

sql/call.rst

CALL procedure invocation.

Polars SQL does not have verified support for connector or stored-procedure calls.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-call.test

sql/commit.rst

COMMIT [ WORK ] transaction control statement.

Polars SQL does not have verified support for explicit transaction control SQL.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-commit.test

sql/create-function.rst

CREATE FUNCTION for SQL or external routines.

Polars SQL does not have verified support for creating user-defined SQL functions.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-create-function.test

sql/create-role.rst

CREATE ROLE role-management statement.

Polars SQL does not have verified support for role management.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-create-role.test

sql/create-schema.rst

CREATE SCHEMA IF NOT EXISTS duplicate-suppression semantics and connector-specific schema properties advertised through system.metadata.schema_properties.

Polars SQL can create schemas, but direct verification showed IF NOT EXISTS does not suppress an existing-schema error. The system metadata table and connector-property examples are not verified Polars SQL behavior.

Polars SQL retained CREATE SCHEMA checks and duplicate IF NOT EXISTS incompatibility check.

polars-sql-test/new_sql_doc/sql-create-schema.test

sql/create-table.rst

CREATE TABLE table/column comments, table and column connector properties, system.metadata.table_properties, system.metadata.column_properties, LIKE column copying, and table or column key constraints such as PRIMARY KEY and UNIQUE.

Polars SQL has verified support for ordinary column definitions, IF NOT EXISTS, and NOT NULL. Direct verification showed LIKE table creation fails in the SQL behavior, and PRIMARY KEY syntax does not enforce uniqueness. Connector property metadata and comment persistence are not verified as compatible source behavior.

Polars SQL retained CREATE TABLE checks plus incompatible PRIMARY KEY and unsupported LIKE checks.

polars-sql-test/new_sql_doc/sql-create-table.test

sql/create-table-as.rst

CTAS IF NOT EXISTS no-op semantics, target column aliases, table comments, table connector properties, system.metadata.table_properties, and WITH NO DATA.

Polars SQL has verified support for basic CREATE TABLE table_name AS query. Direct verification showed CTAS IF NOT EXISTS on an existing table still writes the new query result, target column aliases are ignored, and WITH NO DATA still creates data. Comment persistence and connector property metadata are not verified as compatible source behavior.

Polars SQL retained CTAS check plus incompatible IF NOT EXISTS, target alias, and WITH NO DATA checks.

polars-sql-test/new_sql_doc/sql-create-table-as.test

sql/create-vector-index.rst

CREATE VECTOR INDEX.

Polars SQL does not support vector-index DDL.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-create-vector-index.test

sql/create-view.rst

View security modes SECURITY DEFINER, SECURITY INVOKER, and default_view_security_mode.

View security clauses are accepted but ignored; views use invoker-equivalent behavior. The verified page documents only stored query behavior and OR REPLACE replacement.

Polars SQL retained CREATE VIEW and CREATE OR REPLACE VIEW checks plus accepted-but-ignored security syntax check.

polars-sql-test/new_sql_doc/sql-create-view.test

sql/create-materialized-view.rst

CREATE MATERIALIZED VIEW.

Materialized-view creation is not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-create-materialized-view.test

sql/deallocate-prepare.rst

DEALLOCATE PREPARE prepared-statement lifecycle management.

Prepared-statement lifecycle commands are not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-deallocate-prepare.test

sql/describe.rst

DESCRIBE table_name alias for SHOW COLUMNS.

DESCRIBE table inspection is not supported.

Polars SQL unsupported statement check against an existing table.

polars-sql-test/new_sql_doc/sql-describe.test

sql/describe-input.rst and sql/describe-output.rst

DESCRIBE INPUT and DESCRIBE OUTPUT for prepared statements.

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-test/new_sql_doc/sql-describe-input.test and polars-sql-test/new_sql_doc/sql-describe-output.test

sql/drop-function.rst

DROP FUNCTION for user-defined SQL or temporary functions.

Polars SQL does not have verified support for dropping user-defined SQL functions.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-drop-function.test

sql/drop-role.rst

DROP ROLE role-management statement.

Polars SQL does not have verified support for role management.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-drop-role.test

sql/drop-schema.rst

DROP SCHEMA IF EXISTS missing-schema suppression.

Polars SQL can drop existing schemas, but direct verification showed IF EXISTS does not suppress a missing-schema error.

Polars SQL retained DROP SCHEMA check and incompatible missing-schema IF EXISTS check.

polars-sql-test/new_sql_doc/sql-drop-schema.test

sql/drop-materialized-view.rst

DROP MATERIALIZED VIEW.

Materialized-view DDL is not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-drop-materialized-view.test

sql/execute.rst

EXECUTE prepared-statement execution.

Prepared-statement execution is not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-execute.test

sql/explain.rst

EXPLAIN options and output formats including TYPE DISTRIBUTED, TYPE VALIDATE, TYPE IO, FORMAT GRAPHVIZ, and FORMAT JSON.

Polars SQL has verified support for basic EXPLAIN of query plans, but the option set and output formats are not verified Polars SQL behavior.

Polars SQL retained basic EXPLAIN checks.

polars-sql-test/new_sql_doc/sql-explain.test

sql/explain-analyze.rst

EXPLAIN ANALYZE runtime plan and operator statistics.

Polars SQL does not support EXPLAIN ANALYZE execution semantics or operator statistics output.

Polars SQL unsupported/incompatible statement check.

polars-sql-test/new_sql_doc/sql-explain-analyze.test

sql/grant.rst and sql/grant-roles.rst

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-test/new_sql_doc/sql-grant.test and polars-sql-test/new_sql_doc/sql-grant-roles.test

sql/merge.rst

MERGE conditional insert/update/delete statement.

MERGE is not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-merge.test

sql/prepare.rst

PREPARE prepared-statement creation.

Prepared-statement lifecycle commands are not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-prepare.test

sql/refresh-materialized-view.rst

REFRESH MATERIALIZED VIEW.

Materialized-view refresh is not supported.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-refresh-materialized-view.test

sql/reset-session.rst

RESET SESSION session-property reset syntax.

Polars SQL does not have verified support for session-property control statements.

Polars SQL unsupported statement check.

polars-sql-test/new_sql_doc/sql-reset-session.test

sql/revoke.rst and sql/revoke-roles.rst

Privilege revocation and role revocation.

Polars SQL does not have verified support for privilege or role-management SQL.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-revoke.test and polars-sql-test/new_sql_doc/sql-revoke-roles.test

sql/rollback.rst

Explicit transaction rollback syntax ROLLBACK [ WORK ].

Polars SQL does not have verified support for explicit transaction control SQL.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-rollback.test

sql/select.rst

WITH RECURSIVE.

Polars SQL reports recursive WITH queries as unsupported.

Polars SQL unsupported query check.

polars-sql-test/new_sql_doc/sql-select.test

sql/select.rst

TABLESAMPLE sampling semantics.

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-test/new_sql_doc/sql-select.test

sql/select.rst

UNNEST and WITH ORDINALITY.

Polars SQL does not have verified support for array or map unnesting.

Polars SQL unsupported query check.

polars-sql-test/new_sql_doc/sql-select.test

sql/select.rst

LATERAL joins.

verified Polars SQL behavior fails for a correlated CROSS JOIN LATERAL query, so lateral join semantics are not documented as supported.

Polars SQL unsupported query check.

polars-sql-test/new_sql_doc/sql-select.test

sql/select.rst

INTERSECT ALL and EXCEPT ALL multiset semantics.

Polars SQL verification covered distinct set semantics for INTERSECT and EXCEPT only. Multiset semantics are not documented as supported.

Polars SQL retained distinct set-operation checks.

polars-sql-test/new_sql_doc/sql-select.test

sql/set-role.rst

SET ROLE role-selection statement.

Polars SQL does not have verified support for role-management SQL.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-set-role.test

sql/set-session.rst

SET SESSION session-property assignment syntax.

Polars SQL does not have verified support for session-property control statements.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-set-session.test

sql/show-catalogs.rst, sql/show-columns.rst, sql/show-create-function.rst, sql/show-create-schema.rst, sql/show-create-table.rst, sql/show-create-view.rst, sql/show-create-materialized-view.rst, sql/show-functions.rst, sql/show-grants.rst, sql/show-role-grants.rst, sql/show-roles.rst, sql/show-schemas.rst, sql/show-session.rst, sql/show-stats.rst, and sql/show-tables.rst

metadata inspection SHOW statements.

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 SHOW COLUMNS and SHOW CREATE.

polars-sql-test/new_sql_doc/sql-show-statements.test

sql/start-transaction.rst

START TRANSACTION transaction-control syntax.

Polars SQL does not have verified support for explicit transaction control SQL.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-start-transaction.test

sql/truncate.rst

TRUNCATE TABLE.

TRUNCATE TABLE is rejected as unsupported and leaves table data unchanged.

Polars SQL unsupported statement check plus retained-row count check.

polars-sql-test/new_sql_doc/sql-truncate.test

sql/use.rst

USE catalog/schema session selection.

USE is not supported.

Polars SQL unsupported statement checks.

polars-sql-test/new_sql_doc/sql-use.test