elementary icon indicating copy to clipboard operation
elementary copied to clipboard

Exception raised while generating the observability report using the OSS version locally.

Open julien-alpaca opened this issue 9 months ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

{"data": {"exc": "Compilation Error\n  'dict object' has no attribute 'config'\n  \n  > in macro trino__create_table_as (macros/adapters.sql)\n  > called by macro create_table_as (macros/relations/table/create.sql)\n  > called by macro create_temp_table (macros/utils/table_operations/create_temp_table.sql)\n  > called by macro default__create_temp_table (macros/create_temp_table.sql)\n  > called by macro create_temp_table (macros/create_temp_table.sql)\n  > called by macro get_test_results (macros/get_test_results.sql)\n  > called by macro log_macro_results (macros/utils/log_macro_results.sql)\n  > called by <Unknown>"}, "info": {"category": "", "code": "Q001", "extra": {}, "invocation_id": "62675ace-5081-4af5-a689-b7ca8b22f18f", "level": "error", "msg": "Encountered an error while running operation: Compilation Error\n  'dict object' has no attribute 'config'\n  \n  > in macro trino__create_table_as (macros/adapters.sql)\n  > called by macro create_table_as (macros/relations/table/create.sql)\n  > called by macro create_temp_table (macros/utils/table_operations/create_temp_table.sql)\n  > called by macro default__create_temp_table (macros/create_temp_table.sql)\n  > called by macro create_temp_table (macros/create_temp_table.sql)\n  > called by macro get_test_results (macros/get_test_results.sql)\n  > called by macro log_macro_results (macros/utils/log_macro_results.sql)\n  > called by <Unknown>", "name": "RunningOperationCaughtError", "pid": 34815, "thread": "MainThread", "ts": "2025-04-03T18:56:51.913525Z"}}
2025-04-03 14:56:52 — ERROR — Could not generate the report - Error: Failed to run dbt command.
{"info": {"name": "RunningOperationCaughtError", "code": "Q001", "msg": "Encountered an error while running operation: Compilation Error\n  'dict object' has no attribute 'config'\n  \n  > in macro trino__create_table_as (macros/adapters.sql)\n  > called by macro create_table_as (macros/relations/table/create.sql)\n  > called by macro create_temp_table (macros/utils/table_operations/create_temp_table.sql)\n  > called by macro default__create_temp_table (macros/create_temp_table.sql)\n  > called by macro create_temp_table (macros/create_temp_table.sql)\n  > called by macro get_test_results (macros/get_test_results.sql)\n  > called by macro log_macro_results (macros/utils/log_macro_results.sql)\n  > called by <Unknown>", "level": "error", "invocationId": "62675ace-5081-4af5-a689-b7ca8b22f18f", "pid": 34815, "thread": "MainThread", "ts": "2025-04-03T18:56:51.913525Z"}, "data": {"exc": "Compilation Error\n  'dict object' has no attribute 'config'\n  \n  > in macro trino__create_table_as (macros/adapters.sql)\n  > called by macro create_table_as (macros/relations/table/create.sql)\n  > called by macro create_temp_table (macros/utils/table_operations/create_temp_table.sql)\n  > called by macro default__create_temp_table (macros/create_temp_table.sql)\n  > called by macro create_temp_table (macros/create_temp_table.sql)\n  > called by macro get_test_results (macros/get_test_results.sql)\n  > called by macro log_macro_results (macros/utils/log_macro_results.sql)\n  > called by <Unknown>"}}
Please reach out to our community for help with this issue.

To Reproduce Steps to reproduce the behavior:

  1. Followed quickstart guide
  2. edr report -p ./conf/

Expected behavior A clear and concise description of what you expected to happen.

report is generated without exception

Screenshots If applicable, add screenshots to help explain your problem.

Image

Environment (please complete the following information):

  • Elementary CLI (edr) version: 0.18.1
  • Elementary dbt package version: 0.18.1
  • dbt version: 1.9.3
  • Trino/Iceberg

Additional context Add any other context about the problem here.

Would you be willing to contribute a fix for this issue? Let us know if you're willing to contribute so that we'll be able to provide guidance.

julien-alpaca avatar Apr 03 '25 19:04 julien-alpaca

Same issue for me

netanelm-upstream avatar Apr 10 '25 11:04 netanelm-upstream

Piping in that I have the same issue. Also using Trino + Iceberg, with edr 0.18.2 and dbt package 0.18.3. Tried multiple versions of edr (0.18.1, 0.18.0) with the same result

nmaj-ys avatar May 19 '25 21:05 nmaj-ys

Edit: My error was similar but not the same. I opened a new issue.

balexander avatar Jun 06 '25 18:06 balexander

Any updates on this? I have the same issue!

mattiamatrix avatar Jul 02 '25 16:07 mattiamatrix

Looks like the last working version to run edr report is v0.16.1

elementary-data[trino]==0.16.1
dbt-core>=1.10,<1.11
dbt-trino>=1.9,<1.10

mattiamatrix avatar Jul 03 '25 09:07 mattiamatrix

Does any one have solution to workaround ? I have tried the elementary-data[trino]==0.16.1 but the issue still happen

Daonguyen2401 avatar Aug 13 '25 08:08 Daonguyen2401

Looks like the last working version to run edr report is v0.16.1

elementary-data[trino]==0.16.1 dbt-core>=1.10,<1.11 dbt-trino>=1.9,<1.10

It work's for me thanks @mattiamatrix

lorenzofini01 avatar Aug 28 '25 15:08 lorenzofini01

This should fix https://github.com/starburstdata/dbt-trino/pull/499

mattiamatrix avatar Aug 28 '25 18:08 mattiamatrix