Re: About importing Hive tables and name mapping

2020-11-06 Thread 李响
Edger, Ryan, Got that. Thanks very much for your reply! On Fri, Nov 6, 2020 at 12:36 AM Ryan Blue wrote: > Edgar is correct. Name mapping is used if a data file has no field ids. > When you import data with a name mapping, you should leave it configured on > the table so that you can read the d

Re: About importing Hive tables and name mapping

2020-11-05 Thread Ryan Blue
Edgar is correct. Name mapping is used if a data file has no field ids. When you import data with a name mapping, you should leave it configured on the table so that you can read the data files that you imported. There's no need for a different mapping because we assume that the files you add to t

Re: About importing Hive tables and name mapping

2020-11-05 Thread Edgar Rodriguez
Hi Xiang, On Thu, Nov 5, 2020 at 11:07 AM 李响 wrote: > Dear community: > > I am using SparkTableUtil to import an existing Hive table to an Iceberg > table. > The ORC files of Hive table is an old version of ORC, so I set a name > mapping (like: id 1 mapped to _col0 and id 2 mapped to _col1...) t

About importing Hive tables and name mapping

2020-11-05 Thread 李响
Dear community: I am using SparkTableUtil to import an existing Hive table to an Iceberg table. The ORC files of Hive table is an old version of ORC, so I set a name mapping (like: id 1 mapped to _col0 and id 2 mapped to _col1...) to the Iceberg table by using "schema.name-mapping.default" so that