【发布时间】:2014-09-11 04:47:41
【问题描述】:
我正在尝试在 BigQuery 中保存视图,但一直收到相同的错误:
Failed to create view. Unexpected. Please try again.
查询如下:
SELECT
interaction.id AS Interaction.ID,
interaction.author.name AS Interaction.Author.Name,
interaction.author.username AS Interaction.Author.Username,
interaction.content AS Interaction.Content,
interaction.created_at_timestamp AS Interaction.Created_At_Timestamp,
klout.score AS Klout.Score,
twitter.geo.latitude AS Twitter.Geo.Latitude,
twitter.geo.longitude AS Twitter.Geo.Longitude,
twitter.media.expanded_url AS Twitter.Media.ExpandedUrl,
twitter.media.type AS Twitter.Media.Type,
twitter.place.country AS Twitter.Place.Country,
twitter.user.followers_count AS Twitter.User.Followers,
twitter.user.friends_count AS Twitter.User.Friends,
twitter.user.listed_count AS Twitter.User.Listed,
twitter.retweet.count AS Twitter.Retweet.Count
FROM
[**DATASET_NAME_OMITTED**.main_table]
WHERE
(interaction.id IS NOT NULL)
AND (interaction.created_at_timestamp IS NOT NULL)
AND (interaction.created_at_timestamp >= DATE_ADD(USEC_TO_TIMESTAMP(UTC_USEC_TO_HOUR(NOW())), -1, "DAY"))
AND (interaction.created_at_timestamp < USEC_TO_TIMESTAMP(UTC_USEC_TO_HOUR(NOW())))
查询验证并运行没有任何问题:
Valid: This query will process 203 MB when run.
我确实注意到 twitter.media 是 REPEATED RECORD 类型。也就是说,删除 twitter.media.* 字段并不能解决问题。
我已经能够成功保存具有相同时间戳限制和命名约定的其他视图。尝试保存此文件始终失败。
对于上下文:此表由 DataSift 通过其 BigQuery 连接器填充(默认,包罗万象的架构)。
【问题讨论】:
标签: google-bigquery