Github user cenyuhai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4398#discussion_r24267316
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/BoundAttribute.scala
 ---
    @@ -53,7 +53,7 @@ object BindReferences extends Logging {
                 sys.error(s"Couldn't find $a in ${input.mkString("[", ",", 
"]")}")
               }
             } else {
    -          BoundReference(ordinal, a.dataType, a.nullable)
    +          BoundReference(ordinal, input(ordinal).dataType, a.nullable)
    --- End diff --
    
    before this, we use ' val ordinal = input.indexWhere(_.exprId == a.exprId)' 
to find the AttributeReference which is equal to 'a', but the dataType in 'a' 
is compele, the dataType in input(ordinal) has been cutted in file 
'ParquetTableOperations', you can see the 'output' property in case class 
ParquetTableScan
     


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to