Skip to content

Commit

Permalink
Remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed May 17, 2024
1 parent dd91d79 commit dd36606
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datacontract/export/bigquery_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from datacontract.model.data_contract_specification import Model, Field, Server
from datacontract.model.exceptions import DataContractException

logging.basicConfig(level=logging.INFO, force=True)

def to_bigquery_json(model_name: str, model_value: Model, server: Server) -> str:
bigquery_table = to_bigquery_schema(model_name, model_value, server)
return json.dumps(bigquery_table, indent=2)
Expand All @@ -29,7 +27,7 @@ def to_fields_array(fields: Dict[str, Field]) -> List[Dict[str, Field]]:
bq_fields = []
for field_name, field in fields.items():
bq_fields.append(to_field(field_name, field))

return bq_fields


Expand Down Expand Up @@ -106,4 +104,3 @@ def map_type_to_bigquery(type_str: str, field_name: str) -> str:
reason=f"Unsupported type {type_str} in data contract definition.",
engine="datacontract",
)

0 comments on commit dd36606

Please sign in to comment.