How can I load data in same order as CSV on BigQuery

前端 未结 2 914
梦谈多话
梦谈多话 2021-01-29 00:22

Is it possible to load data in the same row order as in the original input CSV file? These files are not sorted in any particular order or by any particular column. Looks like a

2条回答
  •  庸人自扰
    2021-01-29 00:53

    No, it is not possible. Moreover - once data is loaded into BigQuery table, and doesn't preserve static order, as BigQuery may reshuffle rows in order to optimize storage and future query performance. Result rows of any SELECT query without outermost ORDER BY may come in different order on different invocations.

提交回复
热议问题