Morel is an ML dialect that can compile set-producing expressions into bytecode that Calcite can execute against databases
Sort of like "If you could query anything with SQL but it's ML instead"
I bring this up because the example query looks very similar to Morel queries
Neat xample of solving a combinatorial optimization problem with a single query that he posted recently to Twitter:
I wonder though, is such a dialect better for agents? Have you tried to measure if an agent performs better expressing queries in such a language instead of SQL?
Do you think it would be possible to offer Prela as a direct interface to a relational database?
It might be pretty easy to use overloading to get special case implementations that form SQL queries progressively until the results need to be materialized as something like a dataframe for the function code to work on.
anentropic•7h ago
Not really, too many obscure symbols.
Certainly learnable but I wouldn't say immediately readable.
WorldMaker•5h ago
[0] https://en.wikipedia.org/wiki/Logical_conjunction
[1] https://en.wikipedia.org/wiki/Relational_algebra