Cannot access field in Big Query with type ARRAY>

前端 未结 1 1349
不思量自难忘°
不思量自难忘° 2021-02-04 23:49

I\'m trying to run a query using Standard SQL Dialect (ie not Legacy SQL) on BigQuery. My query is:

SELECT
date, hits.referer
FROM `refresh.ga_sessions_xxxxxx*`
         


        
相关标签:
1条回答
  • 2021-02-05 00:18

    if you are looking for all referers - try

    SELECT date, h.referer
    FROM `refresh.ga_sessions_xxxxxx*`, UNNEST(hits) as h
    
    0 讨论(0)
提交回复
热议问题