Rewrite BigQuery, Redshift, Snowflake and Databricks queries into DuckDB compatible SQL (with deep transformation of functions, data types and format characters) using Java.
In the test testWithBQProjectIdAndQuotes in branch fix/backtics-intable-namesthe scopeSchema for the scopeTable customers and orders should be sales. They are currently set to an empty string.
SQL query used for th test:
with mycte as (
select o.amount, c.id, CURRENT_TIMESTAMP() as timestamp1
from `sales`.`orders` o, sales.customers c
where o.customer_id = c.id
)
select id, sum(amount) as sum, timestamp1
from mycte
group by mycte.id, mycte.timestamp1
In the test
testWithBQProjectIdAndQuotes
in branchfix/backtics-intable-names
the scopeSchema for the scopeTablecustomers
andorders
should besales
. They are currently set to an empty string.SQL query used for th test: