3 ms·
To be completely honest, I forgot who was it, but about a year or 2 ago someone posted about a sql alternative language. The goal was to be adaptable to be used
by Justsignedup 4y ago
To be completely honest, I forgot who was it, but about a year or 2 ago someone posted about a sql alternative language. The goal was to be adaptable to be used in all sql application, but a better designed language so that things like a calculation in a select can be reused in another select column, and better structure to make things easily reusable or composable, etc.
Just a new language to replace sql, that is still sql but just better designed with the benefit of 30+ years of language design improvements.
- ntonozzi 4y agoWas it PRQL? That’s what all of these comments remind me of. https://prql-lang.org/ https://prql-lang.org/
- zX41ZdbW 4y agoThere were countless attempts to extend or replace SQL: OQL: https://en.wikipedia.org/wiki/Object_Query_Language https://en.wikipedia.org/wiki/Object_Query_Language UnQL: https://www.dataversity.net/unql-a-standardized-query-language-for-nosql-databases/ https://www.dataversity.net/unql-a-standardized-query-langua... More modern: PRQL: https://prql-lang.org/ https://prql-lang.org/ Malloy: https://news.ycombinator.com/item?id=30053860 https://news.ycombinator.com/item?id=30053860 (it is so obscure that Google replaces it to "Malay language") Another example: ClickHouse supports standard SQL with many features such as window functions, SQL/JSON, and extends it to make it convenient for data analysts by adding: - higher-order functions; nested data structures, arrays, tuples, and maps; aggregate function states as first-class citizens, unrestricted usage of aliases in any place of expression, etc. https://github.com/ClickHouse/ClickHouse/ https://github.com/ClickHouse/ClickHouse/ I'm an everyday user of ClickHouse, and I'm finding its SQL implementation the most pleasant to use! Although it's unsurprising, because I'm also one of its authors... I'm also welcoming innovation and improvement of SQL without the introduction of a completely different language.
- jrumbut 4y agoClickHouse is one of those technologies I've had half an eye on for a while. In your completely unbiased opinion (I kid), do you think it's a good choice for the following problem? I have multiple sensors that read different types of data about the same subject at (annoyingly) slightly different intervals, usually a few dozen times a second. This needs to be combined with other event data that happens on the order of a few times per day. Currently I analyze this data in Python, R, and sometimes SAS (a weird proprietary language). Some coworkers use Matlab. Is that a ClickHouse problem? If I tried it out would the ClickHouse community be interested in hearing how it goes?
- zX41ZdbW 4y agoLooks like a good scenario for ClickHouse. One option is to just record all the measurements with the corresponding time. Something like a table with: sensor_id, time, value To align and correlate the measurements, simply round down the time to some bucket. Do something like SELECT toStartOfMinute(time) AS t, anyIf(value, sensor_id = 'X'), anyIf(value, sensor_id = 'Y') FROM measurements WHERE sensor_id IN ('X', 'Y') GROUP BY t ORDER BY t Yes, I'm interested in, how it will go! milovidov@clickhouse.com
- zX41ZdbW 4y agoAnother interesting option for correlation of measurements at uneven intervals is - using ASOF JOIN.
- Justsignedup 4y agoPRQL was what I was thinking of. Problem is integrating PRQL into say rails.