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
I'm using sqlmesh+dbt+duckdb. I have declared my sources as follows:
In my model, upon using the source jinja function, I get an error:
Traceback (most recent call last):
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/web/server/api/endpoints/commands.py", line 69, in evaluate
df = context.evaluate(
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/analytics/__init__.py", line 99, in wrapper
return func(*args, **kwargs)
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/context.py", line 802, in evaluate
df = self.snapshot_evaluator.evaluate_and_fetch(
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/snapshot/evaluator.py", line 164, in evaluate_and_fetch
result = self._evaluate_snapshot(
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/snapshot/evaluator.py", line 578, in _evaluate_snapshot
return self.adapter._fetch_native_df(query_or_df.limit(limit))
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/engine_adapter/base.py", line 1697, in _fetch_native_df
self.execute(query, quote_identifiers=quote_identifiers)
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/engine_adapter/base.py", line 1831, in execute
self._execute(sql, **kwargs)
File "/home/costin/repos/portable-data-stack-sqlmesh/.venv/lib/python3.10/site-packages/sqlmesh/core/engine_adapter/base.py", line 1837, in _execute
self.cursor.execute(sql, **kwargs)
duckdb.duckdb.CatalogException: Catalog Error: Table with name channels does not exist!
Did you mean "postcard_company_raw.raw_channels"?
LINE 1: ...T_TIMESTAMP AS "loaded_timestamp" FROM "datamart"."parquet_input"."channels" A...
^
It is to be pointed out that the parquet_input is just a source name, not a database schema/dataset as indicated above. Also, this does work if I use the read_parquet directly
I'm using sqlmesh+dbt+duckdb. I have declared my sources as follows:
In my model, upon using the source jinja function, I get an error:
It is to be pointed out that the
parquet_input
is just a source name, not a database schema/dataset as indicated above. Also, this does work if I use the read_parquet directlyMy environment:
The text was updated successfully, but these errors were encountered: