【发布时间】:2019-11-12 04:35:32
【问题描述】:
我将 apache-beam SDK 从 2.5.0 更改为 2.12.0,并在使用 python 从 BEAM 中的 Big Query 读取表时出现 Avro 架构错误。
BQ 表有一个 TIMESTAMP 字段,其他都是 STRING。
data = pipe \
| 'read bigquery' >> beam.io.Read(
beam.io.BigQuerySource(
dataset=args.dataset_name,
table=args.table_name,
use_standard_sql=True))
错误:
SchemaParseException: Type property "[u'null', {u'logicalType': u'timestamp-micros', u'type': u'long'}]" not a valid Avro schema: Union item must be a valid Avro schema: Currently does not support timestamp-micros logical type
已安装的软件包:
python=2.7.0,apache-beam=2.12.0,avro=1.9.0
【问题讨论】:
标签: python google-bigquery apache-beam avro