diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2015-03-31 13:18:07 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-03-31 13:18:07 -0700 |
commit | 2036bc5993022da550f0cb1c0485ae92ec3e6fb0 (patch) | |
tree | 23b7500f43028d76751b039d36ceebaa5db7d3f9 /sql/core | |
parent | beebb7ffc21c66ae3e4c615555194d1e19ede1bb (diff) | |
download | spark-2036bc5993022da550f0cb1c0485ae92ec3e6fb0.tar.gz spark-2036bc5993022da550f0cb1c0485ae92ec3e6fb0.tar.bz2 spark-2036bc5993022da550f0cb1c0485ae92ec3e6fb0.zip |
[SPARK-6633][SQL] Should be "Contains" instead of "EndsWith" when constructing sources.StringContains
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #5299 from viirya/stringcontains and squashes the following commits:
c1ece4c [Liang-Chi Hsieh] Should be Contains instead of EndsWith.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala b/sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala index 83b603a4bb..e13759b7fe 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala @@ -173,7 +173,7 @@ private[sql] object DataSourceStrategy extends Strategy { case expressions.EndsWith(a: Attribute, Literal(v: String, StringType)) => Some(sources.StringEndsWith(a.name, v)) - case expressions.EndsWith(a: Attribute, Literal(v: String, StringType)) => + case expressions.Contains(a: Attribute, Literal(v: String, StringType)) => Some(sources.StringContains(a.name, v)) case _ => None |