You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:03:09 UTC

[jira] [Updated] (SPARK-19648) Unable to access column containing '.' for approxQuantile function on DataFrame

     [ https://issues.apache.org/jira/browse/SPARK-19648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-19648:
---------------------------------
    Labels: bulk-closed  (was: )

> Unable to access column containing '.' for approxQuantile function on DataFrame
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-19648
>                 URL: https://issues.apache.org/jira/browse/SPARK-19648
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, SQL
>    Affects Versions: 2.0.2, 2.1.0
>         Environment: Running spark in an ipython prompt on Mac OSX. 
>            Reporter: John Compitello
>            Priority: Major
>              Labels: bulk-closed
>
> It seems that the approx quantiles method does not offer any way to access a column with a period in string name. I am aware of the backtick solution, but it does not work in this scenario.
> For example, let's say I have a column named 'va.x'. Passing approx quantiles this string without backticks results in the following error:
> 'Cannot resolve column name '`va.x`' given input columns: ........'
> Note that backticks seem to have been automatically inserted, but it cannot find column name regardless. 
> If I do include backticks, I get a different error. An IllegalArgumentException is thrown as follows:
> "IllegalArgumentException: 'Field "`va.x`" does not exist."



--
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