I am running my python code in a GCP DataProc cluster and using the spark-bigquery-with-dependencies_2.12-0.24.2.jar file. I am trying to create a table in BigQuery using the python client library as below:
from google.cloud import bigquery
client = bigquery.Client()
table_id = "some_project.some_dataset.some_table_name"
schema = [
bigquery.SchemaField("full_name", "STRING", mode="REQUIRED"),
bigquery.SchemaField("salary", "BIGNUMERIC", precision=38, scale=2),
]
table = bigquery.Table(table_id, schema=schema)
table = client.create_table(table)
I get an error like this TypeError: __init__() got an unexpected keyword 'precision'