Hi all, we are setting up dbt-elementary for the f...
# community-support
s
Hi all, we are setting up dbt-elementary for the first time and on running edr report, the generated report is coming back as empty whereas elementary_test_results has data. The edr logs have the following error: ERROR οΏ½ Could not generate the report - Error: Failed to run dbt command. {"info": {"name": "RunningOperationCaughtError", "code": "Q001", "msg": "Encountered an error while running operation: Database Error\n Database Error\n \n [TEMP_VIEW_NAME_TOO_MANY_NAME_PARTS] CREATE TEMPORARY VIEW or the corresponding Dataset APIs only accept single-part view names, but got: We are using Databricks and thats the reason it complains about the "too many parts", looks like its failing to create the temp view as hive_metastore and the schema is getting appended to the CREATE command. Has anyone come across this error? If so, do let me know how you troubleshooted it. Thanks in advance
πŸ†™ 1
πŸ‘€ 1
j
Hi Sonam, we have got the same issue on databricks, notice that our elementary report has been working for nearly a month, but just broke yesterday. We are looking for a solution as well. πŸ₯² thanks for raising this issue, hopefully someone can help. πŸ™‡ We are using 0.17.0, tried with 0.18.1 but no luck.
πŸ‘ 1
n
Hey @Sonam K @Jasper Ma! Looking into it. What dbt package are you using? @Jasper Ma, did the report break with an Elementary update or all of a sudden?
j
@Noya Offer, thanks for your help. I’m using
dbt=1.9.4
, and the registered adapter is
databricks=1.10.0
. I started breaking since yesterday without any elementary update. We are still using dbt elementary version
0.17.0
n
Did you happen to update dbt recently?
j
nope, we have been using that dbt version for months.
s
Hey @Noya Offer, we are using- dbt-core:1.9.3 elementary-data/elementary: 0.18.2 databricks: 1.9.7 Referring back to this thread, https://github.com/elementary-data/elementary/issues/1048 it seemed that the issue was fixed for spark and Databricks but looks like its not Could you please guide us on how to proceed as we are completely blocked atm.
πŸ‘€ 1
Hi @Jasper Ma I'm sorry to hear that your Elementary reports started to encounter issues! This seems to be a persistent challenge with the Databricks environment. Please let me know if you manage to find a solution - I'd be interested to hear what eventually works for you.
πŸ‘ 1
n
@Sonam K is the CLI version also 0.18.1 ? πŸ™‚
s
yes, CLI version is 0.18.1
πŸ™Œ 1
c
We've got the same issue. Using 0.18.1 for both versions, dbt-databricks=1.10.0. Did not have the issue before upgrading dbt-databricks.
s
Hi @Noya Offer, do you have any updates for us? Can you give some pointers on how to debug this? Or which macro is getting called on running "edr report" so that we can look at overriding specific macro?
c
I can give an update from our POV. edr report fails in this step: INFOelementary.clients.dbt.command line dbt runnerRunning dbt command --log-format json run-operation elementary.log_macro_results --args {"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}} --project-dir /local_disk0/.ephemeral_nfs/envs/pythonEnv-41445283-eae7-413a-a273-00752d71b03d/lib/python3.10/site-packages/elementary/monitor/dbt_project --profiles-dir /Workspace/Live_dbt {"data": {"exc": "Database Error\n Database Error\n \n [TEMP_VIEW_NAME_TOO_MANY_NAME_PARTS] CREATE TEMPORARY VIEW or the corresponding Dataset APIs only accept single-part view names, but got:
dae_nexus_prod
.
elementary
.
ordered_test_resultsnone
. I re-ran it with %pip install dbt-databricks==1.9.7 %pip install elementary-data==0.17.0 and did not get an error.
s
I tried the same versions as you, where it worked for you but didnt work for me unfortunately. Still getting the same error.
@Noya Offer sharing the edr logs if it helps:
j
I got the same error on creating the same temporary view. We have been using the same package versions(1.9.7, 0.17.0) for months and started getting this error two days ago.πŸ₯²
n
Thank you @Jasper Ma @Sonam K @Christian Demant ! The failed edr logs are very helpful to debug this. Out team will look into this issue on Monday πŸ™πŸΌ
❀️ 2
thankyou 1
πŸ‘ 1
s
I have opened a bug to track this issue -> https://github.com/elementary-data/elementary/issues/1895 fyi - @Noya Offer @Jasper Ma @Christian Demant
d
I think I’ve found the fix for this. create_temp_table.sql needs an override for the databricks adapter similar to how snowflake has been handled. I have added comments to the ticket.
Might be a bug in dbt core as you would expect dbt.create_table_as to handle for this
Or the databricks adapter if that’s where the code is translated
n
Thanks, @Dave Beastall! Let me take a deeper look. @Sonam K Can you please share the edr logs again? Sorry to ask this, but the file is not found now.
@Jasper Ma Did you update the Databricks adapter a few days ago?
s
Hi @Noya Offer - sharing the edr logs again.
πŸ™ 1
j
Hi @Noya Offer, no I didn’t.
s
Hi @Noya Offer - any findings or updates on fix so far?
n
Support is packed today but our CTO is looking into it. I'll let you know as soon as we have a better understanding of this!
thankyou 2
d
ive updated the ticket as needed to make a fix to the code
πŸ™Œ 1
On python 3.12 we get successful runs of this now with the fix in the ticket and a downgrade to 0.17.0 uising
pip install elementary-data==0.17.0
. 18.1 has the same issue and the fix works but there is another issue behind it to do with some
api_dbt_runner
issue. Given the downgrade to 0.17 fixes the issue for now on python 3.12 we will continue with this. The 18.1 issue is documented in the ticket for someone else to finish the analysis.
πŸ™Œ 1
@Noya Offer do you plan to review this bug and feedback on next steps as we will now have to put in a post deployment fix as a workaround to handle for this
n
Absolutely, @Itamar Hartstein is on it. Appreciate your cooperation and help on this!
j
Hi @Noya Offer, thanks for supporting. Has there been any further update on this one since last Wednesday?
s
Hi @Noya Offer - wondering if you have any updates for the issue reported above? We do have a workaround for now, but would be good to have it working in the latest version as well. Let us know. Thanks in advance
j
Hi @Noya Offer, wondering if the the root cause of this issue has been found or any workaround for this? thanks!
n
Hey @Jasper Ma @Sonam K, this is taking a bit longer than we thought but we've prioritized this and actively working on it. Our next CLI release that's planned for this week is waiting for this fix, so it will be released as soon as we implement the solution πŸ™
πŸ‘ 2
❀️ 1
j
Hi @Noya Offer, I can see that the latest version of dbt elementary is now
0.18.3
, is this issue fixed by this release?
n
Hey @Jasper Ma ! Absolutely πŸš€ Was away for a couple of days so didn't update yet. Sharing the full release message soon πŸ™Œ Thank you for your cooperation and patience!
❀️ 1
thankyou 1
CC @Sonam K πŸ™‚
πŸ‘ 1
s
Thank you @Noya Offer, looking forward to try out the new release.