You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by dpxcc November 12, 2024
The TABLESAMPLE clause is useful for sampling from large tables, but pg_duckdb doesn't support it right now due to syntax differences in TABLESAMPLE clause between Postgres and DuckDB: https://duckdb.org/docs/sql/samples.html
SETduckdb.force_execution=ON;
CREATETABLEt (a int);
SELECT*FROM t TABLESAMPLE SYSTEM (10);
throws
WARNING: (PGDuckDB/CreatePlan) Prepared query returned an error: 'Parser Error: Sample method System cannot be used with a discrete sample count, either switch to reservoir sampling or use a sample_size
a
---
(0 rows)
but it could be an error if we added some DuckDB-only function to the query
The text was updated successfully, but these errors were encountered:
Discussed in #429
Originally posted by dpxcc November 12, 2024
The
TABLESAMPLE
clause is useful for sampling from large tables, but pg_duckdb doesn't support it right now due to syntax differences inTABLESAMPLE
clause between Postgres and DuckDB: https://duckdb.org/docs/sql/samples.htmlthrows
but it could be an error if we added some DuckDB-only function to the query
The text was updated successfully, but these errors were encountered: