如何在Google大查询中查询记录类型重复字段?

时间:2019-05-03 18:09:18

标签: google-cloud-platform google-bigquery

在我的大查询表中,我刚刚在记录类型字段“ A”内添加了另一个记录类型字段“ B”。在标准SQL方言中,我无法按以下方式查询B的重复字段: 从其中_partitiontime =;

中选择A.B.field1,A.B.field2,...

用于以下查询-

SELECT ad_request_custom_targeting.iom.size, 
ad_request_custom_targeting.iom.bidprice FROM `nyt-adtech- 
prd.dfp_data.dfp_log_network_requests` WHERE DATE(_PARTITIONTIME) = "2019- 
05-03" LIMIT 1000

我收到以下错误消息:     无法访问[1:40]处类型为“ ARRAY>”的值的字段大小

1 个答案:

答案 0 :(得分:0)

对于BigQuery标准SQL

我认为在您的示例中

private void button1_Click(object sender, EventArgs e) { int count; // Validate input if (!int.TryParse(textBox1.Text, out count) || count < 0) { MessageBox.Show("Please enter a positive whole number"); return; } // remove old buttons (except this one) var otherButtons = Controls.OfType<Button>().Where(b => b != button1).ToList(); foreach (Button b in otherButtons) { Controls.Remove(b); } // Add button controls to form with these size and spacing values (modify as desired) var width = 25; var height = 25; var padding = 2; // For each row, increment the top by the height plus padding for (int row = 0, top = padding; row < count; row++, top += height + padding) { // For each column, increment the left by the width plus padding for (int col = 0, left = padding; col < count; col++, left += width + padding) { // Add our new button Controls.Add(new Button { Top = top, Left = left, Width = width, Height = height, }); } } } A,而ad_request_custom_targetingB

iom