Skip to content

Conversation

JelteF
Copy link
Collaborator

@JelteF JelteF commented May 28, 2025

We were adding hints to queries to which they did not apply. This is
unhelpful and confusing for users. So this makes some changes to our
logic for adding these hints to only do so when the query string
includes the pg_duckdb functions that return a duckdb.row.

JelteF and others added 2 commits May 28, 2025 17:59
…functions

We were adding hints to queries to which they did not apply. This is
unhelpful and confusing for users. So this makes some changes to our
logic for adding these hints to only do so when the query string
includes the pg_duckdb functions that return a duckdb.row.
@JelteF JelteF added this to the 1.0.0 milestone Jun 3, 2025
@JelteF JelteF requested a review from Y-- June 3, 2025 11:54
@JelteF JelteF enabled auto-merge (squash) June 3, 2025 12:50
*/
edata->hint = pstrdup(
"If you use DuckDB functions like read_parquet, you need to use the r['colname'] syntax introduced "
"in pg_duckdb 0.3.0. It seems like you might be using the outdated \"AS (colname coltype, ...)\" "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for this PR but we'll probably want to drop old version refs before going 1.0

@JelteF JelteF merged commit b723fc8 into main Jun 3, 2025
6 checks passed
@JelteF JelteF deleted the only-show-hint-when-needed branch June 3, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants