aboutsummaryrefslogtreecommitdiff
path: root/sql/core
diff options
context:
space:
mode:
authorwangfei <wangfei1@huawei.com>2014-10-27 20:46:20 -0700
committerMichael Armbrust <michael@databricks.com>2014-10-27 20:46:26 -0700
commit89af6dfc3afb2b8fc60fa74afb52541dbf3c4e8f (patch)
treeb7066a7232b6b3cd1efe2b7035b79159b4cca87b /sql/core
parent698a7eab7710cccdfd3a5234dc9572e4e674fff6 (diff)
downloadspark-89af6dfc3afb2b8fc60fa74afb52541dbf3c4e8f.tar.gz
spark-89af6dfc3afb2b8fc60fa74afb52541dbf3c4e8f.tar.bz2
spark-89af6dfc3afb2b8fc60fa74afb52541dbf3c4e8f.zip
[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. Author: wangfei <wangfei1@huawei.com> Author: scwf <wangfei1@huawei.com> Closes #2884 from scwf/fixColumnIds and squashes the following commits: 6174046 [scwf] use AttributeMap for this issue dc74a24 [wangfei] use lowerName and add a test case for this issue 3ff3a80 [wangfei] more safer change 294fcb7 [scwf] attributes names in table scan should convert lowercase in neededColumnsIDs
Diffstat (limited to 'sql/core')
0 files changed, 0 insertions, 0 deletions