PQL - Pipelined Query Language
(github.com/runreveal)- Microsoft के Kusto से प्रेरित एक query language. यह SQL में compile होती है
- Go में लिखी गई एक library, जिसे Clickhouse SQL dialect के साथ test किया गया है, लेकिन generated SQL किसी खास DB पर निर्भर नहीं है
- इसे इस तरह डिज़ाइन किया गया है कि हर query के result को अगली query में pipe किया जा सके, ताकि complex queries को आसानी से बनाया जा सके
लेखन उदाहरण
StormEvents
| where DamageProperty > 5000 and EventType == "Thunderstorm Wind"
| top 3 by DamageProperty
यह स्टेटमेंट नीचे दिए गए SQL में compile होती है
SELECT *
FROM StormEvents
WHERE DamageProperty > 5000 AND EventType = 'Thunderstorm Wind'
ORDER BY DamageProperty DESC
LIMIT 3;
अभी कोई टिप्पणी नहीं है.