-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata queries yield incorrect results when user space named after an e-mail address is targeted #119
Comments
Thanks for raising this issue @Marnixvdb. I'll do a deeper dive into this and take action accordingly |
Hi @Marnixvdb , You are right, as written here : https://github.com/fabrice-etanchaud/dbt-dremio#databases, because in information_schema tables, you cannot split the schema field in space+folder, as '.' is the separator. |
Thanks for the clarification, @fabrice-etanchaud! You're right: in information_schema it isn't possible, but if we'd query the sys."tables" (software) / sys.project."tables" (cloud) instead, it is possible. The sys."tables" keeps the path in an array, making making it trivial to select the database/space and the rest of the path. |
Hi @Marnixvdb , I am afraid, on my dremio CE 23.1.0-202211250136090978-a79618c7, I cannot find any sys."tables" :
|
That's odd. On Dremio Cloud they're there and according to the reference they should also be present in the software edition. I'll set up a software instance to get a more complete picture of the possibilities. |
in the Dremio software version, the tables in |
When targeting the personal space of a user, using their e-mail address as the identifier of the space, many of the queries generated by the macros in https://github.com/dremio/dbt-dremio/blob/main/dbt/include/dremio/macros/adapters/metadata.sql yield incorrect results. The queries consistently assume there are no dots in the database name, which is not true for the personal user spaces.
I'm unsure of what the actual impact is, because I was able to perform most operations against my user space anyway (which we do for development purposes), but it's still something that I think should be fixed.
The text was updated successfully, but these errors were encountered: