You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Olli Kuonanoja (JIRA)" <ji...@apache.org> on 2018/12/05 08:35:00 UTC
[jira] [Created] (SPARK-26270) Having clause does not work with
explode anymore
Olli Kuonanoja created SPARK-26270:
--------------------------------------
Summary: Having clause does not work with explode anymore
Key: SPARK-26270
URL: https://issues.apache.org/jira/browse/SPARK-26270
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.4.0
Reporter: Olli Kuonanoja
Hi,
In Spark 2.3.0 it was possible to execute queries like
{code:sql}
select explode(col1) as v from values array(1,2) having v>1
{code}
but in 2.4.0 it leads to
{noformat}
org.apache.spark.sql.AnalysisException: Generators are not supported outside the SELECT clause, but got: 'Aggregate [explode(col1#1) AS v#0];
{noformat}
Before looking into a fix I'm trying to understand if this has been changed on purpose and if there is an alternate construct available. Could not find any pre-existing tests for the explode-having combination.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org