[
https://issues.apache.org/jira/browse/SPARK-19648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Compitello updated SPARK-19648:
------------------------------------
Affects Version/s: 2.1.0
> 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
>
> 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
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]