0

我相信orc.force.positional.evolution在配置单元表属性中使用我们可以强制位置演变,默认是模式演变。我有一个奇怪的需求,我需要提供自定义映射。比如我的orc架构如下

  root
 |-- action_date: timestamp (nullable = true)
 |-- action_type: string (nullable = true)
 |-- customer_id: string (nullable = true)
 |-- name: string (nullable = true)

和我的蜂巢列名如下

  date timestamp,
  customer_id string,
  customer_name string,
  type string

有没有办法提供自定义映射,如 -

date -> action_date
customer_id -> customer_id
customer_name -> name
type -> action_type

请注意,在这种情况下,位置演化和模式演化都不起作用。更改 ORC 架构或配置单元列名不是我的选择。提前致谢。

4

0 回答 0