关于Google文档,我可以按以下方式使用存储在命令行中JSON文件中的架构:
bq --location=location load \
--source_format=format \
project_id:dataset.table \
path_to_data_file \
path_to_schema_file
其中path_to_schema_file
是包含架构的文件的路径
是否有办法在python中执行此操作,并将架构从json文件传递到LoadJobConfig().schema
?还是我应该手动读取模式并将其转换为bigquery.TableSchema()
对象?