Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukapeschke
Copy link
Contributor

Follow-up for @priithaamer 's work on the Redshift dialect (thanks!). I'm getting the following error from Redshift when usingg f-strings: [SQLState 42883] ERROR: function concat(character varying, "unknown", character varying) doe s not exist

The Redshift docs state that one should use nested CONCAT functions or the || operator to concatenate more than two elements: https://docs.aws.amazon.com/redshift/latest/dg/r_CONCAT.html

The Redshift docs state that one should use nested CONCAT functions or
the `||` operator to concatenate more than two elements:
https://docs.aws.amazon.com/redshift/latest/dg/r_CONCAT.html

Signed-off-by: Luka Peschke <[email protected]>
Signed-off-by: Luka Peschke <[email protected]>
@priithaamer
Copy link
Contributor

priithaamer commented Nov 4, 2025

Awesome, thanks! It has been bugging us as well but haven't gotten to it yet. Can confirm it works!

@eitsupi
Copy link
Member

eitsupi commented Nov 4, 2025

Thank you both, let's merge this.

@eitsupi eitsupi merged commit 00b2ed0 into PRQL:main Nov 4, 2025
36 checks passed
@lukapeschke lukapeschke deleted the redshift-use-double-pipe-over-concat branch November 4, 2025 09:41
@max-sixty
Copy link
Member

lmk if you want me to do a release; quite easy to do now!

@lukapeschke
Copy link
Contributor Author

@max-sixty A release would be great once #5545 is merged! It's the last blocker for our prql+redshift usage :)

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.

4 participants