Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support RANGE query parameters #1827

Merged
merged 14 commits into from
Mar 4, 2024
Prev Previous commit
Next Next commit
lint
  • Loading branch information
Linchin committed Feb 24, 2024
commit cb6ed7588bd1b2f6a2eccdadbafdfdaed0cbba2b
5 changes: 3 additions & 2 deletions google/cloud/bigquery/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,9 @@ def from_api_repr(cls, resource: dict) -> "RangeQueryParameter":
google.cloud.bigquery.query.RangeQueryParameter: Instance
"""
name = resource.get("name")
range_element_type = resource.get("parameterType", {}) \
.get("rangeElementType", {}).get("type")
range_element_type = (
resource.get("parameterType", {}).get("rangeElementType", {}).get("type")
)
range_value = resource.get("parameterValue", {}).get("rangeValue", {})
start = range_value.get("start", {}).get("value")
end = range_value.get("end", {}).get("value")
Expand Down