From 762a5c953ba0276eba09bab094e2201bcbce7b3f Mon Sep 17 00:00:00 2001 From: prql-bot <107324867+prql-bot@users.noreply.github.com> Date: Fri, 24 Feb 2023 23:32:36 -0800 Subject: [PATCH] chore: Backport #1939 to `web` (#1959) web: Attempt to default to the SQL view in playground (#1939) web: Default to the SQL view in playground (cherry picked from commit 7281e34a5c7661f905caa8f2500b5f811e56af6a) Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> --- playground/src/examples.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playground/src/examples.js b/playground/src/examples.js index 751c1434e64a..e9955d897e75 100644 --- a/playground/src/examples.js +++ b/playground/src/examples.js @@ -1,6 +1,6 @@ const examples = { "introduction.prql": [ - "arrow", + "sql", `from invoices filter invoice_date >= @1970-01-16 derive [ # This adds columns @@ -27,7 +27,7 @@ derive db_version = s"version()" # S-string, escape hatch to SQL ], "let-table-0.prql": [ - "arrow", + "sql", `let soundtracks = ( from playlists filter name == 'TV Shows' @@ -56,7 +56,7 @@ take 10 ], "artists-0.prql": [ - "arrow", + "sql", `from tracks select [album_id, name, unit_price] sort [-unit_price, name]