Hacker News new | past | comments | ask | show | jobs | submit login

Hey Max, love what you all doing with PRQL! It's a wonderful tool.

That makes sense. I ran into some old issues about Pivot but it seems it's not been implemented yet. And yes, s-strings wouldn't work - the DuckDB pivot statement looks like this:

  PIVOT ⟨dataset⟩ 
  ON ⟨columns⟩
  USING ⟨values⟩ 
  GROUP BY ⟨rows⟩
So, we'd have to pass the `dataset` so far into the pivot statement. This is where CTEs come in handy but happy to hear if there's a better solution :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: