roykoand commented on code in PR #73155:
URL: https://github.com/apache/airflow/pull/73155#discussion_r4012490366
##########
shared/configuration/src/airflow_shared/configuration/parser.py:
##########
@@ -1602,16 +1602,35 @@ def getjson(
self, section: str, key: str, fallback=None, **kwargs
) -> dict | list | str | int | float | None:
"""
- Return a config value parsed from a JSON string.
+ Return a config value parsed from a JSON string or JSON file.
- ``fallback`` is *not* JSON parsed but used verbatim when no config
value is given.
+ If no direct config value is given for ``key``, attempts to read from
a file path
+ specified by ``key + '_file'``.
+
+ ``fallback`` is *not* JSON parsed but used verbatim when no config
value or file is given.
"""
try:
data = self.get(section=section, key=key, fallback=None,
_extra_stacklevel=1, **kwargs)
except (NoSectionError, NoOptionError):
data = None
if data is None or data == "":
+ try:
Review Comment:
this seems to be unrelated to BigQuery issue?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]