You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/08/03 03:37:51 UTC

[GitHub] [hudi] qianchutao commented on issue #6142: [SUPPORT] column ‘_hoodie_is_deleted’ query by presto exception

qianchutao commented on issue #6142:
URL: https://github.com/apache/hudi/issues/6142#issuecomment-1203445830

   > 嘿@qianchutao,我能够解决这个问题,也许该解决方案也可以帮助你。 因此,基本上会发生此错误,因为镶木地板文件中声明的模式与 Athena / Presto 上的表模式 ddl 之间的顺序不匹配。这通常适用于 Athena,因为在 Athena 上映射列的默认方法是使用名称 [1],对于 Presto,默认方式是按列索引 [2],因此当您进行架构演变或出于某种原因列的顺序时parquet 文件和表模式之间不匹配,这开始发生,与 hudi 本身无关。
   > 
   > 要解决此问题,请`hive.parquet.use-column-names=true`在 EMR 配置选项卡下或在启动时添加配置,这将更新配置文件并重新启动 presto 集群。如果您想在正在运行的集群上执行此操作,您需要在主节点和工作节点上执行并重新启动 presto,否则配置将不起作用。
   > 
   > 让我知道这是否有帮助😁
   > 
   > [1] https://docs.aws.amazon.com/athena/latest/ug/handling-schema-updates-chapter.html [2] [https://stackoverflow.com/questions/60183579/presto-fails-with -类型不匹配错误](https://stackoverflow.com/questions/60183579/presto-fails-with-type-mismatch-errors)
   
   thanks bro,i'll try it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org