ZackBarry opened a new pull request #16161: URL: https://github.com/apache/airflow/pull/16161
<!-- Thank you for contributing! Please make sure that your code changes are covered with tests. And in case of new features or big changes remember to adjust the documentation. Feel free to ping committers for the review! In case of existing issue, reference it using one of the following: closes: #ISSUE related: #ISSUE How to write a good git commit message: http://chris.beams.io/posts/git-commit/ --> Ensure expected key is in `datasetReference` dictionary The `create_empty_dataset()` method of the `BigQueryHook` class expects that `datasetReference` will be a key in the `dataset_reference` argument, and that its associated value will be a dictionary. If the user pases a dictionary without that key, the function fails. This is not clear in the documentation for the operator that relies on this method, `BigQueryCreateEmptyDatasetOperator`. This issue was raised in https://github.com/apache/airflow/issues/16101. This PR checks the passed dictionary for the (`datasetReference`, `{}`) key/value pair. If it's missing, it's added. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
