简体   繁体   English

在目标表架构中使用 BIGDECIMAL 时无法设置对 BigQuery 的 GCP Pub/sub 订阅

[英]Unable to setup GCP Pub/sub subscription to BigQuery when BIGDECIMAL in target table schema

Objective : Setup a GCP Pub/sub subscription:目标:设置 GCP Pub/sub 订阅:

  • on a topic associated to a protobuf schema关于与 protobuf 模式关联的主题
  • which directly routes the JSON-encoded messages to a BigQuery table containing a BIGNUMERIC field它直接将 JSON 编码的消息路由到包含BIGNUMERIC字段的 BigQuery 表

Issue : Creating the topic consistently errors out with a generic API returned error: 'Request contains an invalid argument.'问题:创建主题始终出错并API returned error: 'Request contains an invalid argument.' . .

What was attempted : After many combinations of protobuf schema + target table schema, the conversion of any protobuf numeric type to a BigQuery BIGNUMERIC field seems to be the offending aspect.尝试了什么:在 protobuf 模式 + 目标表模式的许多组合之后,任何 protobuf 数字类型到 BigQuery BIGNUMERIC字段的转换似乎是有问题的方面。

I found this official doc table which describes the available conversions, and I notice that the target ZetaSQL types do not feature BIGNUMERIC at all.我找到了描述可用转换的官方文档表,我注意到目标 ZetaSQL 类型根本不具有BIGNUMERIC功能。

Question : Am I missing something, or does it actually mean there is no way to do Pub/sub-to-BigQuery ingestion if the target table has a BIGNUMERIC field?问题:我是否遗漏了什么,或者这是否实际上意味着如果目标表具有BIGNUMERIC字段,则无法进行 Pub/sub-to-BigQuery 摄取?

The BIGNUMERIC type is not currently supported in Pub/Sub to BigQuery subscriptions. Pub/Sub 到 BigQuery 订阅目前不支持BIGNUMERIC类型。 The only way to ingest into BigQuery from Pub/Sub with this datatype would be to use Dataflow.使用此数据类型从 Pub/Sub 摄取到 BigQuery 的唯一方法是使用数据流。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM