Skip to content

Commit

Permalink
Simplify ParquetOptions.to_api_repr()
Browse files Browse the repository at this point in the history
Co-authored by Tres Seaver.
  • Loading branch information
plamut committed Jun 2, 2021
1 parent 3ad0b5b commit 2a033d7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions google/cloud/bigquery/format_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,4 @@ def to_api_repr(self) -> dict:
Dict[str, bool]:
A dictionary in the format used by the BigQuery API.
"""
result = {}

if self.enum_as_string is not None:
result["enumAsString"] = self.enum_as_string
if self.enable_list_inference is not None:
result["enableListInference"] = self.enable_list_inference

return result
return copy.deepcopy(self._properties)

0 comments on commit 2a033d7

Please sign in to comment.