You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/01/22 21:41:00 UTC
[jira] [Commented] (SPARK-30606) Applying the `like` function with
2 parameters fails
[ https://issues.apache.org/jira/browse/SPARK-30606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17021536#comment-17021536 ]
Dongjoon Hyun commented on SPARK-30606:
---------------------------------------
Since this is introduced by SPARK-28083, this is only for 3.0.0, right?
> Applying the `like` function with 2 parameters fails
> ----------------------------------------------------
>
> Key: SPARK-30606
> URL: https://issues.apache.org/jira/browse/SPARK-30606
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Maxim Gekk
> Priority: Major
>
> The `Like` expression is registered as the `like` function. Applying the function with 2 parameters fails with the exception:
> {code}
> spark-sql> select like('Spark', 'S%');
> Invalid arguments for function like; line 1 pos 7
> org.apache.spark.sql.AnalysisException: Invalid arguments for function like; line 1 pos 7
> at org.apache.spark.sql.catalyst.analysis.FunctionRegistry$.$anonfun$expression$7(FunctionRegistry.scala:618)
> at scala.Option.getOrElse(Option.scala:189)
> at org.apache.spark.sql.catalyst.analysis.FunctionRegistry$.$anonfun$expression$4(FunctionRegistry.scala:602)
> at org.apache.spark.sql.catalyst.analysis.SimpleFunctionRegistry.lookupFunction(FunctionRegistry.scala:121)
> at org.apache.spark.sql.catalyst.catalog.SessionCatalog.lookupFunction(SessionCatalog.scala:1412)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org