google-bigquery - Invalid POLYGON bigQuery while using ST_GEOGFROMTEXT
问题描述
I have a column with POLYGON strings and I need to convert them with ST_GEOGFROMTEXT. But I got this error mensage:
"ST_GeogFromText failed: Invalid polygon loop: Edge 1 has duplicate vertex with edge 4; in polygon at position 392"
Is there way to identify which row returns the problem?
解决方案
考虑使用SAFE.ST_GeogFromText
which 将为错误的行返回 NULL。