spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Baghel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-26870) Java : Avro function to_avro and from_avro is undefined
Date Thu, 14 Feb 2019 03:09:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-26870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16767842#comment-16767842
] 

Amit Baghel commented on SPARK-26870:
-------------------------------------

Yes, I have added the spark-avro dependency in pom.xml and I am able to import classes from
org.apache.spark.sql.avro.* package. I couldn't find to_avro and from_avro methods in any
class of this package. I am using same java code given in the Apache Avro Data Source Guide.

> Java : Avro function to_avro and from_avro is undefined
> -------------------------------------------------------
>
>                 Key: SPARK-26870
>                 URL: https://issues.apache.org/jira/browse/SPARK-26870
>             Project: Spark
>          Issue Type: Bug
>          Components: Java API, SQL
>    Affects Versions: 2.4.0
>            Reporter: Amit Baghel
>            Priority: Major
>
> As given at *Apache Avro Data Source Guide* [to_avro() and from_avro() |https://spark.apache.org/docs/latest/sql-data-sources-avro.html#to_avro-and-from_avro],
I tried this functions in Java code but it gives compiler error as "The method to_avro(Column)
is undefined".



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


Mime
View raw message