You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Oscar Westra van Holthe - Kind (Jira)" <ji...@apache.org> on 2021/11/23 16:07:00 UTC

[jira] [Resolved] (AVRO-1924) Variable named 'date' in IDL

     [ https://issues.apache.org/jira/browse/AVRO-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oscar Westra van Holthe - Kind resolved AVRO-1924.
--------------------------------------------------
    Resolution: Information Provided

There's been no change in a few years, and the workaround works (there's an improvement pending for an unrelated field; AVRO-3251). Closing as suggested in 2018.

> Variable named 'date' in IDL
> ----------------------------
>
>                 Key: AVRO-1924
>                 URL: https://issues.apache.org/jira/browse/AVRO-1924
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.8.1
>            Reporter: Niels Basjes
>            Assignee: Ryan Blue
>            Priority: Critical
>
> I was compiling Apache Parquet and found that the switch from Avro 1.8.0 to 1.8.1 broke their build.
> The error: {code}
> [ERROR] Failed to execute goal org.apache.avro:avro-maven-plugin:1.8.1:idl-protocol (schemas) ... 
> org.apache.avro.compiler.idl.ParseException: Encountered " "date" "date "" at line 23, column 14.
> [ERROR] Was expecting one of:
> [ERROR] <IDENTIFIER> ...
> [ERROR] "@" ...
> [ERROR] "`" ...
> [ERROR] -> [Help 1]
> {code}
> As it turns out they have a test idl that contains this:
> {code}
> @namespace("org.apache.parquet.avro")
> protocol Cars {
>     record Service {
>         long date;
>     }
> }
> {code}
> And this change AVRO-1684 turned the word 'date' into something different for the idl compiler.
> So changing the word 'date' into something else fixes the problem. 
> Yet I think this is an undesirable effect for end user applications.
> [~rdblue]: I assigned this to you implemented the mentioned change.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)