diff --git a/website/public/index.html b/website/public/index.html index d9d624aed..b99665a83 100644 --- a/website/public/index.html +++ b/website/public/index.html @@ -84,12 +84,13 @@

Run Snowflake SQL locally.

= help: move the condition to WHERE or HAVING sqlquack convert revenue.sql --schema schema.json -SELECT "ORDERS"."CUSTOMER_ID" AS "CUSTOMER_ID", - CAST(sum("ORDERS"."TOTAL") AS DECIMAL(24,2)) AS "REVENUE" +SELECT + "ORDERS"."CUSTOMER_ID" AS "CUSTOMER_ID", + CAST(sum("ORDERS"."TOTAL") AS DECIMAL(24,2)) AS "REVENUE" FROM "ORDERS" AS "ORDERS" WHERE ("ORDERS"."STATUS" = 'shipped') GROUP BY "ORDERS"."CUSTOMER_ID" -sqlquack convert: done +sqlquack convert: done, converted under the built-in default
@@ -154,8 +155,12 @@

DuckDB SQL that keeps Snowflake's meaning

SELECT order_id, total / 3 AS third FROM orders sqlquack convert div.sql --schema schema.json --builtin-policy -SELECT "ORDERS"."ORDER_ID" AS "ORDER_ID", - (CASE … ELSE CAST(… AS DECIMAL(18,8)) END) AS "THIRD" +SELECT + "ORDERS"."ORDER_ID" AS "ORDER_ID", + (CASE + … + ELSE CAST(… AS DECIMAL(18,8)) + END) AS "THIRD" FROM "ORDERS" AS "ORDERS" sqlquack convert: done, converted under the built-in default @@ -175,7 +180,8 @@

A refusal you can act on

| ^^^^^^^^^^^^^^^^^ fn:HASH needs known divergence `hash`, | which the policy refuses in this mode | - = help: allow the divergence under [divergences.<id>] in the policy file … + = help: the built-in policy refuses every known divergence; + pass --policy with a policy file that allows `hash` … sqlquack convert: refused, 1 refusal under the built-in default @@ -191,7 +197,10 @@

Known divergences are opt-in

default = "warn" sqlquack convert due.sql --schema schema.json -SELECT "ORDERS"."ORDER_ID" AS "ORDER_ID", … AS "BUCKET" FROM "ORDERS" AS "ORDERS" +SELECT + "ORDERS"."ORDER_ID" AS "ORDER_ID", + … AS "BUCKET" +FROM "ORDERS" AS "ORDERS" sqlquack convert: relies on known divergence hash at fn:HASH sqlquack convert: done, converted under utc-v1