kingeasternsun commented on pull request #3876:
URL: https://github.com/apache/iceberg/pull/3876#issuecomment-1019718133


   > > > > Looks weird, All these failed cases
   > > 
   > > 
   > > > >
   > > 
   > > 
   > > > > ```
   > > > > Caused by: org.apache.avro.InvalidAvroMagicException: Not an Avro 
data file
   > > > > ```
   > > 
   > > 
   > > > > ```
   > > > >      at 
org.apache.avro.file.DataFileReader.openReader(DataFileReader.java:70)
   > > > > ```
   > > 
   > > 
   > > > > ```
   > > > >      at 
org.apache.iceberg.avro.AvroIterable.newFileReader(AvroIterable.java:100)
   > > > > ```
   > > 
   > > 
   > > > >
   > > 
   > > 
   > > > 
   > > 
   > > 
   > > > Yeah something wrong with the format matching? Odd, for example the 
one I looked at is failing because an ORC file is being read as an AVRO one.
   > > 
   > > 
   > > ```shell
   > > Error: eckstyle] [ERROR] 
/home/runner/work/iceberg/iceberg/data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java:91:
 Trailing whitespace is not allowed. [RegexpSinglelineJava]
   > > 
   > > Error: eckstyle] [ERROR] 
/home/runner/work/iceberg/iceberg/data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java:91:
 Whitespace at end-of-line [RegexpSingleline]
   > > 
   > > Error: eckstyle] [ERROR] 
/home/runner/work/iceberg/iceberg/data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java:105:
 Trailing whitespace is not allowed. [RegexpSinglelineJava]
   > > 
   > > > Task :iceberg-data:checkstyleMain FAILED
   > > 
   > > Error: eckstyle] [ERROR] 
/home/runner/work/iceberg/iceberg/data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java:105:
 Whitespace at end-of-line [RegexpSingleline]
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > can i just remove these two empty line?
   > 
   > The empty line isn't the issue, the error would be white space before an 
end of line character
   
   A
   
   > > Looks weird, All these failed cases
   > > ```shell
   > >     Caused by: org.apache.avro.InvalidAvroMagicException: Not an Avro 
data file
   > >          at 
org.apache.avro.file.DataFileReader.openReader(DataFileReader.java:70)
   > >          at 
org.apache.iceberg.avro.AvroIterable.newFileReader(AvroIterable.java:100)
   > > ```
   > 
   > Yeah something wrong with the format matching? Odd, for example the one I 
looked at is failing because an ORC file is being read as an AVRO one.
   
   the  bug has fixed, and all tests has passed in my local enviroment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to