[ https://issues.apache.org/jira/browse/SPARK-4207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-4207. ------------------------------------- Resolution: Fixed Fix Version/s: 1.2.0 Issue resolved by pull request 3075 [https://github.com/apache/spark/pull/3075] > Query which has syntax like 'not like' is not working in Spark SQL > ------------------------------------------------------------------ > > Key: SPARK-4207 > URL: https://issues.apache.org/jira/browse/SPARK-4207 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.1.0 > Reporter: Ravindra Pesala > Assignee: Ravindra Pesala > Fix For: 1.2.0 > > > Queries which has 'not like' is not working in Spark SQL. Same works in Spark > HiveQL. > {code} > sql("SELECT * FROM records where value not like 'val%'") > {code} > The above query fails with below exception > {code} > Exception in thread "main" java.lang.RuntimeException: [1.39] failure: ``IN'' > expected but `like' found > SELECT * FROM records where value not like 'val%' > ^ > at scala.sys.package$.error(package.scala:27) > at > org.apache.spark.sql.catalyst.AbstractSparkSQLParser.apply(SparkSQLParser.scala:33) > at org.apache.spark.sql.SQLContext$$anonfun$1.apply(SQLContext.scala:75) > at org.apache.spark.sql.SQLContext$$anonfun$1.apply(SQLContext.scala:75) > at > org.apache.spark.sql.catalyst.SparkSQLParser$$anonfun$org$apache$spark$sql$catalyst$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:186) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org