Fokko commented on pull request #1972:
URL: https://github.com/apache/iceberg/pull/1972#issuecomment-752742829


   @rdblue That was my first thought as well. Unfortunally that's not the case:
   ```
   MacBook-Pro-van-Fokko:dbt-data-ai-summit fokkodriesprong$ avro-tools tojson 
file:/tmp/fokko/1970-01-01T00-00-00.000+00:00-1970-01-01T00-01-00.000+00:00-00000-of-00001.avro
   20/12/30 21:05:11 WARN util.NativeCodeLoader: Unable to load native-hadoop 
library for your platform... using builtin-java classes where applicable
   Exception in thread "main" java.lang.IllegalArgumentException: 
java.net.URISyntaxException: Relative path in absolute URI: 
.1970-01-01T00-00-00.000+00:00-1970-01-01T00-01-00.000+00:00-00000-of-00001.avro.crc
        at org.apache.hadoop.fs.Path.initialize(Path.java:263)
        at org.apache.hadoop.fs.Path.<init>(Path.java:221)
        at org.apache.hadoop.fs.Path.<init>(Path.java:129)
        at 
org.apache.hadoop.fs.ChecksumFileSystem.getChecksumFile(ChecksumFileSystem.java:94)
        at 
org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:149)
        at 
org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:347)
        at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:899)
        at org.apache.avro.tool.Util.openFromFS(Util.java:88)
        at org.apache.avro.tool.Util.fileOrStdin(Util.java:64)
        at org.apache.avro.tool.DataFileReadTool.run(DataFileReadTool.java:87)
        at org.apache.avro.tool.Main.run(Main.java:67)
        at org.apache.avro.tool.Main.main(Main.java:56)
   Caused by: java.net.URISyntaxException: Relative path in absolute URI: 
.1970-01-01T00-00-00.000+00:00-1970-01-01T00-01-00.000+00:00-00000-of-00001.avro.crc
        at java.net.URI.checkPath(URI.java:1823)
        at java.net.URI.<init>(URI.java:745)
        at org.apache.hadoop.fs.Path.initialize(Path.java:260)
        ... 11 more
   ```
   I've added a new Naming Policy to the PR that resolves the issue. Besides 
that, I've added an assert that catches the semicolon, to make sure that you 
don't write data, that you can't read using Spark/Hive/etc.


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

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