spark-issues mailing list archives

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


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:
>             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() |],
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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message