如何在 Google Big Query 中将 "full name" 列拆分为单独的名字和姓氏列?

How to split a "full name" column into a separate first and last name column in Google Big Query?

我有一个 table 列,full_name 的全名格式如下,中间没有空格,只有一个逗号:

Johnson,Boe

如何在Google Big Query中以最简单的方式查询两者之间的分离?

如果要拆分名称,可以使用split():

split(full_name, ',')[ordinal(1)] as last_name, split(full_name, ',')[ordinal(2)] as first_name