GitHub user scwf opened a pull request: https://github.com/apache/spark/pull/2884
[Spark-4041][SQL]attributes names in table scan should converted to lowercase when compare with relation attributes In ```MetastoreRelation``` the attributes name is lowercase because of hive using lowercase for fields name, so we should convert attributes name in table scan lowercase in ```indexWhere(_.name == a.name)```. ```neededColumnIDs``` may be not correct if not convert to lowercase. You can merge this pull request into a Git repository by running: $ git pull https://github.com/scwf/spark fixColumnIds Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/2884.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2884 ---- commit 294fcb772594fb563d9a32e19b0073219120b2b1 Author: scwf <wangf...@huawei.com> Date: 2014-10-21T21:01:18Z attributes names in table scan should convert lowercase in neededColumnsIDs ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org