Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/patch-ddf9c1cd9a
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored May 20, 2024
2 parents 676e6f5 + 5b820ae commit 00a6c78
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 187 deletions.
2 changes: 2 additions & 0 deletions prqlc/prqlc/tests/integration/queries/text_module.prql
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# mssql:test
# glaredb:skip — TODO: started raising an error on 2024-05-20; see `window.prql`
# for more details
from albums
select {
title,
Expand Down
5 changes: 5 additions & 0 deletions prqlc/prqlc/tests/integration/queries/window.prql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# duckdb:skip problems with DISTINCT ON (duckdb internal error: [with INPUT_TYPE = int; RESULT_TYPE = unsigned char]: Assertion `min_val <= input' failed.)
# clickhouse:skip problems with DISTINCT ON
# postgres:skip problems with DISTINCT ON
# glaredb:skip — TODO: started raising an error on 2024-05-20, from https://github.com/PRQL/prql/actions/runs/9154902656/job/25198160283:
# ERROR: This feature is not implemented: Unsupported ast node in sqltorel:
# Substring { expr: Identifier(Ident { value: "title", quote_style: None }),
# substring_from: Some(Value(Number("2", false))), substring_for:
# Some(Value(Number("5", false))), special: true }
from tracks
group genre_id (
sort milliseconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,130 +7,134 @@ TokenVec(
[
0..12: Comment(" mssql:test"),
12..13: NewLine,
13..17: Ident("from"),
18..24: Ident("albums"),
24..25: NewLine,
25..31: Ident("select"),
32..33: Control('{'),
33..34: NewLine,
38..43: Ident("title"),
43..44: Control(','),
44..45: NewLine,
49..65: Ident("title_and_spaces"),
66..67: Control('='),
68..82: Interpolation('f', " {title} "),
82..83: Control(','),
83..84: NewLine,
88..91: Ident("low"),
92..93: Control('='),
94..99: Ident("title"),
100..101: Control('|'),
102..106: Ident("text"),
106..107: Control('.'),
107..112: Ident("lower"),
112..113: Control(','),
113..114: NewLine,
118..120: Ident("up"),
121..122: Control('='),
123..128: Ident("title"),
129..130: Control('|'),
131..135: Ident("text"),
135..136: Control('.'),
136..141: Ident("upper"),
141..142: Control(','),
142..143: NewLine,
147..155: Ident("ltrimmed"),
156..157: Control('='),
158..163: Ident("title"),
164..165: Control('|'),
166..170: Ident("text"),
170..171: Control('.'),
171..176: Ident("ltrim"),
176..177: Control(','),
177..178: NewLine,
182..190: Ident("rtrimmed"),
191..192: Control('='),
193..198: Ident("title"),
199..200: Control('|'),
201..205: Ident("text"),
205..206: Control('.'),
206..211: Ident("rtrim"),
211..212: Control(','),
212..213: NewLine,
217..224: Ident("trimmed"),
225..226: Control('='),
227..232: Ident("title"),
233..234: Control('|'),
235..239: Ident("text"),
239..240: Control('.'),
240..244: Ident("trim"),
244..245: Control(','),
245..246: NewLine,
250..253: Ident("len"),
254..255: Control('='),
256..261: Ident("title"),
262..263: Control('|'),
264..268: Ident("text"),
268..269: Control('.'),
269..275: Ident("length"),
275..276: Control(','),
276..277: NewLine,
281..285: Ident("subs"),
286..287: Control('='),
288..293: Ident("title"),
294..295: Control('|'),
296..300: Ident("text"),
300..301: Control('.'),
301..308: Ident("extract"),
309..310: Literal(Integer(2)),
311..312: Literal(Integer(5)),
312..313: Control(','),
313..314: NewLine,
318..325: Ident("replace"),
326..327: Control('='),
328..333: Ident("title"),
334..335: Control('|'),
336..340: Ident("text"),
340..341: Control('.'),
341..348: Ident("replace"),
349..353: Literal(String("al")),
354..360: Literal(String("PIKA")),
360..361: Control(','),
361..362: NewLine,
362..363: Control('}'),
363..364: NewLine,
364..368: Ident("sort"),
369..370: Control('{'),
370..375: Ident("title"),
375..376: Control('}'),
13..93: Comment(" glaredb:skip — TODO: started raising an error on 2024-05-20; see `window.prql`"),
93..94: NewLine,
94..112: Comment(" for more details"),
112..113: NewLine,
113..117: Ident("from"),
118..124: Ident("albums"),
124..125: NewLine,
125..131: Ident("select"),
132..133: Control('{'),
133..134: NewLine,
138..143: Ident("title"),
143..144: Control(','),
144..145: NewLine,
149..165: Ident("title_and_spaces"),
166..167: Control('='),
168..182: Interpolation('f', " {title} "),
182..183: Control(','),
183..184: NewLine,
188..191: Ident("low"),
192..193: Control('='),
194..199: Ident("title"),
200..201: Control('|'),
202..206: Ident("text"),
206..207: Control('.'),
207..212: Ident("lower"),
212..213: Control(','),
213..214: NewLine,
218..220: Ident("up"),
221..222: Control('='),
223..228: Ident("title"),
229..230: Control('|'),
231..235: Ident("text"),
235..236: Control('.'),
236..241: Ident("upper"),
241..242: Control(','),
242..243: NewLine,
247..255: Ident("ltrimmed"),
256..257: Control('='),
258..263: Ident("title"),
264..265: Control('|'),
266..270: Ident("text"),
270..271: Control('.'),
271..276: Ident("ltrim"),
276..277: Control(','),
277..278: NewLine,
282..290: Ident("rtrimmed"),
291..292: Control('='),
293..298: Ident("title"),
299..300: Control('|'),
301..305: Ident("text"),
305..306: Control('.'),
306..311: Ident("rtrim"),
311..312: Control(','),
312..313: NewLine,
317..324: Ident("trimmed"),
325..326: Control('='),
327..332: Ident("title"),
333..334: Control('|'),
335..339: Ident("text"),
339..340: Control('.'),
340..344: Ident("trim"),
344..345: Control(','),
345..346: NewLine,
350..353: Ident("len"),
354..355: Control('='),
356..361: Ident("title"),
362..363: Control('|'),
364..368: Ident("text"),
368..369: Control('.'),
369..375: Ident("length"),
375..376: Control(','),
376..377: NewLine,
377..383: Ident("filter"),
384..385: Control('('),
385..390: Ident("title"),
391..392: Control('|'),
393..397: Ident("text"),
397..398: Control('.'),
398..409: Ident("starts_with"),
410..417: Literal(String("Black")),
417..418: Control(')'),
419..421: Or,
422..423: Control('('),
423..428: Ident("title"),
429..430: Control('|'),
431..435: Ident("text"),
435..436: Control('.'),
436..444: Ident("contains"),
445..454: Literal(String("Sabbath")),
454..455: Control(')'),
456..458: Or,
459..460: Control('('),
460..465: Ident("title"),
466..467: Control('|'),
468..472: Ident("text"),
472..473: Control('.'),
473..482: Ident("ends_with"),
483..487: Literal(String("os")),
487..488: Control(')'),
488..489: NewLine,
381..385: Ident("subs"),
386..387: Control('='),
388..393: Ident("title"),
394..395: Control('|'),
396..400: Ident("text"),
400..401: Control('.'),
401..408: Ident("extract"),
409..410: Literal(Integer(2)),
411..412: Literal(Integer(5)),
412..413: Control(','),
413..414: NewLine,
418..425: Ident("replace"),
426..427: Control('='),
428..433: Ident("title"),
434..435: Control('|'),
436..440: Ident("text"),
440..441: Control('.'),
441..448: Ident("replace"),
449..453: Literal(String("al")),
454..460: Literal(String("PIKA")),
460..461: Control(','),
461..462: NewLine,
462..463: Control('}'),
463..464: NewLine,
464..468: Ident("sort"),
469..470: Control('{'),
470..475: Ident("title"),
475..476: Control('}'),
476..477: NewLine,
477..483: Ident("filter"),
484..485: Control('('),
485..490: Ident("title"),
491..492: Control('|'),
493..497: Ident("text"),
497..498: Control('.'),
498..509: Ident("starts_with"),
510..517: Literal(String("Black")),
517..518: Control(')'),
519..521: Or,
522..523: Control('('),
523..528: Ident("title"),
529..530: Control('|'),
531..535: Ident("text"),
535..536: Control('.'),
536..544: Ident("contains"),
545..554: Literal(String("Sabbath")),
554..555: Control(')'),
556..558: Or,
559..560: Control('('),
560..565: Ident("title"),
566..567: Control('|'),
568..572: Ident("text"),
572..573: Control('.'),
573..582: Ident("ends_with"),
583..587: Literal(String("os")),
587..588: Control(')'),
588..589: NewLine,
],
)
Loading

0 comments on commit 00a6c78

Please sign in to comment.