【发布时间】:2020-03-18 07:06:08
【问题描述】:
我在 bigquery 表中有一个文本列。该列的示例记录看起来像 -
with temp as
(
select 1 as id,"as we go forward into unchartered waters it's important to remember we are all in this together. #united #community" as input
union all
select 2 , "US cities close bars, restaurants and cinemas #Coronavirus"
)
select *
from temp
我想提取此列中以 # 开头的所有单词。稍后我想知道这些术语的频率。如何在 BigQuery 中执行此操作?
我的输出看起来像 -
id, word
1, united
1, community
2, coronavirus
【问题讨论】:
标签: regex google-bigquery