Why does Redshift ignore length when grouping by VARCHAR of only spaces?
1
vote
1
answer
219
views
Imagine I have a column
name
that is n
rows and the nth
entry is equal to REPEAT(' ', n)
. For SELECT DISTINCT name FROM table
I would expect to receive n
rows because each name is unique by definition. For dialects like BigQuery and Snowflake, I do receive this. However for Redshift I only receive one row. Why is this?
Asked by Tanner Clary
(11 rep)
Jan 29, 2024, 07:01 PM
Last activity: Jun 22, 2025, 03:03 PM
Last activity: Jun 22, 2025, 03:03 PM