You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# join_customers_and_orders.sql
SELECT c.customer_id, c.source, c.region, c.member_since,
CASE WHEN purchase_count IS NULL THEN 0 ELSE 1 END AS recent_purchase
FROM orders c LEFT OUTER JOIN customers p ON c.customer_id = p.customer_id
Desired behavior
Users should specify a default conn_id to apply to all files in aql.render(), and overwrite in individual files if needed. This would be consistent with specifying the conn_id` in the other operators.
Acceptance criteria
Have a way of specifying a default conn_id when using aql.render.
SQL files used by aql.render do not need to declare conn_id
All the documentation and examples continue working as expected.
Context
At the moment,
conn_id
needs to be specified in all SQL files used byaql.render()
; otherwise, Astro (0.5.1) raises the following exception:The current Astro documentation is misleading since it does not include this, e.g.:
https://github.com/astro-projects/astro#setting-up-sql-files
Desired behavior
Users should specify a default
conn_id
to apply to all files inaql.render(), and overwrite in individual files if needed. This would be consistent with specifying the
conn_id` in the other operators.Acceptance criteria
conn_id
when usingaql.render.
aql.render
do not need to declareconn_id
The text was updated successfully, but these errors were encountered: