[ https://issues.apache.org/jira/browse/CALCITE-2977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808664#comment-16808664 ]
pengzhiwei commented on CALCITE-2977: ------------------------------------- I think this problem exist in the _RelDataTypeImpl#getField()_ method, which does not check the ambiguous filed. > Exception is not thrown out when there are ambiguous field in select list > -------------------------------------------------------------------------- > > Key: CALCITE-2977 > URL: https://issues.apache.org/jira/browse/CALCITE-2977 > Project: Calcite > Issue Type: Bug > Components: core > Affects Versions: 1.20.0 > Reporter: pengzhiwei > Assignee: pengzhiwei > Priority: Major > Fix For: 1.20.0 > > > In the following sql: > {code:java} > select t0 from (select 1 as t0, 2 as t0 from dept){code} > _SqlValidatorImpl_ does not throw an exception for the ambiguous field "t0". > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)