-
Notifications
You must be signed in to change notification settings - Fork 14
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
Passing Hive configuration properties #85
Comments
About passing configuration with Impyla, I'm referring to this |
Can you try using pre-hooks for settings the properties? |
Thank you for the fast reply ! Unfortunately using pre-hooks fails.
I get the following error:
|
Ok. Let me explore this at our end and get back to you. |
Thank you very much ! 🙏 |
For reference, there is this issue in the dbt-spark repository, with similar target. It is quite interesting.. An ideal situation would be to be able to pass configuration at model level but I'm not sure we have such possibility. |
The parse error for pre_hook seems strange. Apparently dbt adds a comment for query when it is executing, and Hive doesn't seem to honour comment when using set. So: /*dbt some comment */ set hive.exec.dynamic.partition=true; flags an error, while: set hive.exec.dynamic.partition=true; works! |
Are you ok to try out this draft PR: #89 ? |
Sorry for the delay ! I could test the PR against a test table and it seems it solves the issue ! Thank you very much for the fast fixing ! Let me know if I can do anything else. |
In what version is this issue fixed? We need a solution urgently |
@wuguozhu you can install from the source for the fix. There is no updated pip package. |
While experimenting with this adapter, I'm trying to find a way to pass configuration properties to Hive.
For example, I would like to be able to run:
Apparently with Impyla we need to pass these properties in a
configuration
dictionary whenexecute
-ing a query.Is it possible to attach such a dictionary in a model's
config
?The text was updated successfully, but these errors were encountered: