[ https://issues.apache.org/jira/browse/HIVE-23849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Barnabas Maidics updated HIVE-23849: ------------------------------------ Description: When creating a view, Hive skips the creation of ColumnAccessInfo that should be created at [step 8|https://github.com/apache/hive/blob/11e069b277fd1a18899b8ca1d2926fcbe73f17f2/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L12601] This causes Authorization error. Currently, this issue is "hidden" when CBO is enabled. By introducing HIVE-14496, CalcitePlanner creates this ColumnAccessInfo at [step 2|#L12460]]. But after turning off CBO, the issue is still there. I think the return statement in [step 5|#L12574]] is not necessary. was: When creating a view, Hive skips the creation of ColumnAccessInfo that should be created at [step 8|[https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L12601]]. This causes Authorization error. Currently, this issue is "hidden" when CBO is enabled. By introducing [HIVE-14496|https://issues.apache.org/jira/browse/HIVE-14496], CalcitePlanner creates this ColumnAccessInfo at [step 2|[https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L12460]]. But after turning off CBO, the issue is still there. I think the return statement in [step 5|[https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L12574]] is not necessary. > Hive skips the creation of ColumnAccessInfo when creating a view > ---------------------------------------------------------------- > > Key: HIVE-23849 > URL: https://issues.apache.org/jira/browse/HIVE-23849 > Project: Hive > Issue Type: Bug > Reporter: Barnabas Maidics > Assignee: Barnabas Maidics > Priority: Major > > When creating a view, Hive skips the creation of ColumnAccessInfo that should > be created at [step > 8|https://github.com/apache/hive/blob/11e069b277fd1a18899b8ca1d2926fcbe73f17f2/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L12601] > This causes Authorization error. > Currently, this issue is "hidden" when CBO is enabled. By introducing > HIVE-14496, CalcitePlanner creates this ColumnAccessInfo at [step > 2|#L12460]]. But after turning off CBO, the issue is still there. > I think the return statement in [step 5|#L12574]] is not necessary. -- This message was sent by Atlassian Jira (v8.3.4#803005)