-
Notifications
You must be signed in to change notification settings - Fork 163
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
[ADAP-1007] [Feature] Cast dataproc batch runtime_config properties to strings #1001
Comments
Thanks for reporting this @jimmyshah ! Did only single quotes work for you, or did double quotes work also, like this? runtime_config:
properties:
"spark.executor.instances": "4"
"spark.driver.memory": "4g" Does this work for you? runtime_config:
properties:
spark.executor.instances: '4'
spark.driver.memory: '4g' Or did the Ultimately, I'm curious if maybe only integers need to be quoted, but everything else doesn't need to be quoted? |
Hi @dbeatty10!
I also tried having only the '4' in quotes, and that also worked. This makes me think your theory is correct, that only integers need to be quoted. |
Thanks for checking all those @jimmyshah ! I'm going to relabel this as a feature since technically dbt-biquery is working properly but isn't user-friendly. The docs are erroneous though. To address both short-term and long-term, we should do the following:
1. Update the documentationI opened a PR to update the documentation: 2. Cast to a string within dbt-bigqueryReplace the Alternatively, casting values of |
Thank you for the quick and thorough response @dbeatty10! It looks like your docs PR has been merged, so the short-term fix should be in! That said, I'm happy to raise a PR to address the underlying issue. Thank you for providing some guidance on how to best implement the change. I am leaning towards the second solution you proposed of casting the |
Awesome @jimmyshah would be great if you want to raise a PR for this. As a heads-up, the test case(s) always seem to be the most time-consuming part in the code review process. Other things to be aware of:
|
Hi @dbeatty10! Thank you for the heads up, definitely helpful! I opened PR #1008 that (I think?) resolves the issue! For My formatter/editor settings may have caused more changes than I intended, my apologies. I only meant to add these lines If there is anything else I can do from my end, let me know! |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Is this a new bug in dbt-bigquery?
Current Behavior
While trying to configure Dataproc Serverless jobs via
profile.yml
, I keep getting an error unless I use quotes around each key-value pair, which doesn't match dbt's documentation.What works for me:
Expected Behavior
According to dbt's documentation, Dataproc Serverless jobs can be configured in the dbt
profiles.yml
file, without quotes. In the example provided on the site,runtime_config
properties
can be specified in yaml as such:Steps To Reproduce
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: