-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
dbplyr on HIVE produces invalid SQL when using select_*() or select helpers on an in_schema() object #3200
Comments
A little more digging suggests that dbplyr is using The problem with this approach is the hive parameter As this field is set true by default (see the TEZ documentation and HIVE-6687, dbplyr will need to work around this somehow if it wants to effectively support Hive (which seems to be part of RStudio's plans). |
Hi, what happens if we remove the
|
You mean this?
That gives To summarise:
I suspect all *_all(), *_if(), *_at() functions would fail in a similar way, but I have not tried them. |
Ok, can you help me with clarifying the first point in the summarize list? The field names on a quick query I ran look fine to me:
|
Two questions/observations:
|
You're correct, sorry, it is a Hive connection. I just added a new DB, and a new table to that DB, here's the code and its results:
|
what does As I mentioned in my second post, the parameter
|
@edgararuiz can you please close the loop here? |
Yes, I'll be glad to. My Hive service is down now, so I'll circle back as soon as I have somewhere to test @sz-cgt suggestion |
@sz-cgt - here is the result:
Do you think it is because we're using different versions of Hive? This is what I'm using:
This is what I see yours is (copy-pasted from you previous post):
|
OK. so you have the default. That means this query
If you put an alias on the end, like this
Is that what happens or do you get undecorated column names? |
This issue was moved by krlmlr to tidyverse/dbplyr/issues/110. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Simple example
produces
Note the missing table alias
zzz10
Remove the schema reference and it works
produces
Swap to PostgreSQL and it works
produces
Here's the connection information for the two systems (minus any personal details of course)
The text was updated successfully, but these errors were encountered: