Skip to content
Snippets Groups Projects
Commit 2036bc59 authored by Liang-Chi Hsieh's avatar Liang-Chi Hsieh Committed by Reynold Xin
Browse files

[SPARK-6633][SQL] Should be "Contains" instead of "EndsWith" when constructing...

[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.
parent beebb7ff
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment