BigQuery: SPLIT() returns only one value

前端 未结 5 1293
时光说笑
时光说笑 2020-12-05 11:35

I have a page URL column components of which are delimited by /. I tried to run the SPLIT() function in BigQuery but it only gives the first value.

5条回答
  •  感动是毒
    2020-12-05 12:27

    This works for me:

    SELECT SPLIT(path, '/') part
    FROM (SELECT "/a/b/aaaa?c" path)
    
    Row part     
    1   a    
    2   b    
    3   aaaa?c
    

    Not sure why it wouldn't work for you. What does your data look like?

提交回复
热议问题