Big Query do not accept EMOJI

怎甘沉沦 提交于 2019-12-24 07:57:48

问题


I have emojis in this format - \U0001f924 why BigQuery(Google Data studio) does not display them, even if I saw examples that this format working for other people?

SAMPLE: - Second Emoji in this format \u2614

Ref: Emoji crashed when uploading to Big Query

Based on this article it should work: Google \Uhhhhhhhh Format

UPDATE 1.0:

If I use "" then emojis in this format \U2714 displays emoji, this one \U0001f680 still the same as text U0001f680

If I use '' then emojis in this format \U2714 as well as \U0001f680 display only value U2714 and U0001f680


回答1:


The emoji on the question works for me with SELECT "\U0001f680":

I stored the results in a table so you can find it:

  • https://bigquery.cloud.google.com/table/fh-bigquery:public_dump.one_emoji?tab=preview

If you ask BigQuery to export this table to a GCS file, and bring this file into your computer, it will continue to work:

You can download this json file and load it back into BigQuery:

  • https://drive.google.com/file/d/1hXASPN0J4bP0PVk20x7x6HfkAFDAD4vq/view?usp=sharing

Let's load it into BigQuery:

Everything works fine:


So the problem is in the files you are loading to BigQuery - which are not encoding emoji's appropriately.

What I don't know is how you are generating these files, nor how to fix that process. But here I have proven that for files that correctly encode emojis - you can load them into BigQuery and emojis will be preserved.

🙃



来源:https://stackoverflow.com/questions/52199674/big-query-do-not-accept-emoji

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!