Comment by maximilianroos
4 years ago
Thanks!
I just fleshed out composing CTEs, which is a small step towards the broader goal of making composition easier: https://github.com/max-sixty/prql/commit/dc68fcaaceef26cc078...
Let me know if you have a good case of the sort of composition you find difficult in SQL (either here or in an issue). Thank you!
I think supporting variables and functions already solves most of my composability gripes with SQL.
Another problem that I have with composing SQL is that large queries quickly become unreadable, and error messages are also often not terribly helpful. I think having a more expressive type system would help with the error messages. Do you have any plans on adding a type system to PRQL?