Is it possible to convert external tables to native in BigQuery?

独自空忆成欢 提交于 2020-12-13 03:42:31

问题


I have created a table from Google Cloud Storage (filepath starts with gs://). I could not create it as native even after trying multiple times. I succeeded only after setting the table option as native. Later, I was able to query this table successfully. However, I need to do the following:

  1. Add a column to the table
  2. Append (union) two such external tables
  3. Join the appended table with another external table
  4. save the joined table in a new table so that I can later query this new table

Questions: Since this is an external table, can I add a column? Can I save the joined table as native?


回答1:


Yes, you can convert an external table (or federated source) to a native table in BigQuery.

To do this, simply read the external table using SQL and set the destination table for the results. BigQuery will then write the results of your query to a native table.



来源:https://stackoverflow.com/questions/43386615/is-it-possible-to-convert-external-tables-to-native-in-bigquery

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