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/02/14 01:30:00 UTC
[jira] [Commented] (SPARK-26870) Java : Avro function to_avro and
from_avro is undefined
[ https://issues.apache.org/jira/browse/SPARK-26870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16767774#comment-16767774 ]
Hyukjin Kwon commented on SPARK-26870:
--------------------------------------
Did you properly set `org.apache.spark:spark-avro_2.11:2.4.0`? Can you show your codes?
> 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