by
JS_L
• New Contributor II
- 1956 Views
- 2 replies
- 1 kudos
Hi Community,I try to pass the result of a CTE as a function parameter as code below WITH t1 AS (
SELECT array_join(collect_list(output), ',') AS x
FROM my_catalog.my_db.get_x(:startTime, :endTime)
)
SELECT 'AM_offline' as Type, CASE WHEN off...
- 1956 Views
- 2 replies
- 1 kudos
Latest Reply
Hi @szymon_dybczak Thanks for replying. I don't the issue is related to datatype, since the query works if I pass the subquery to _x parameter without CTE.Please see as below code:SELECT 'AM_offline' as Type, CASE WHEN offline_ratio > 1.5 THEN 'no-Go...
1 More Replies
- 3683 Views
- 3 replies
- 0 kudos
I have created Python modules containing some Python functions and I would like to import them from a notebook contained in the Workspace. For example, I have a "etl" directory, containing a "snapshot.py" file with some Python functions, and an empty...
- 3683 Views
- 3 replies
- 0 kudos
Latest Reply
Hi @sachamourier ,It will work, but you need carefully craft path to sys.path.append(), you even do not need __init__.py to make it work.Try to hard-code the path to the snapshot.py in workspace.Add this to your notebook: import sys
import os
absolu...
2 More Replies