You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/04/30 02:49:00 UTC
[jira] [Commented] (SPARK-28040) sql() fails to process output of
glue::glue_data()
[ https://issues.apache.org/jira/browse/SPARK-28040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17096042#comment-17096042 ]
Apache Spark commented on SPARK-28040:
--------------------------------------
User 'MichaelChirico' has created a pull request for this issue:
https://github.com/apache/spark/pull/28379
> sql() fails to process output of glue::glue_data()
> --------------------------------------------------
>
> Key: SPARK-28040
> URL: https://issues.apache.org/jira/browse/SPARK-28040
> Project: Spark
> Issue Type: Bug
> Components: SparkR
> Affects Versions: 2.4.3
> Reporter: Michael Chirico
> Priority: Major
>
> {{glue}} package is quite natural for sending parameterized queries to Spark from R. Very similar to Python's {{format}} for strings. Error is as simple as
> {code:java}
> library(glue)
> library(sparkR)
> sparkR.session()
> query = glue_data(list(val = 4), 'select {val}')
> sql(query){code}
> Error in writeType(con, serdeType) :
> Unsupported type for serialization glue
> {{sql(as.character(query))}} works as expected but this is a bit awkward / post-hoc
--
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