Closed renevoorburg closed 2 years ago
Thanks for the report! I'll take a look.
Hi Matt,
Another issue that is probably related:
echo "line 1" | gzip > concat.gz echo "line 2" | gzip >> concat.gz echo "line 1" | gzip >> concat.gz zindex concat.gz --regex 'line ([0-9]+)' --numeric --unique
ERROR: Failed to index line 3: 'line 1' - Error handling index match '1' - constraint failed Again, this only happens for concatenated gzip files.
Thanks! René
Op 4 sep. 2017, om 16:54 heeft Matt Godbolt notifications@github.com het volgende geschreven:
Thanks for the report! I'll take a look.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mattgodbolt/zindex/issues/30#issuecomment-326981555, or mute the thread https://github.com/notifications/unsubscribe-auth/AAca2RqglXsvcrB3BLiC9r8lmnrSy_3Hks5sfA8_gaJpZM4PL12m.
This is now actually fixed in d338361d57feab864fb45b821d05e8d2bfa9e6c8 - I've separated the other issue creating the index in the first place to another bug.
Hi,
When I query a concatenated gzip file for multiple lines I get an error.
This works as expected:
echo -en "line 1\nline 2\n" | gzip > lines.gz zindex lines.gz --regex 'line ([0-9]+)' --numeric --unique
zindex/build/Release/zq lines.gz 1 2 line 1 line 2
This gives an error:
echo "line 1" | gzip > concat.gz echo "line 2" | gzip >> concat.gz zindex concat.gz --regex 'line ([0-9]+)' --numeric --unique
zq concat.gz 1 line 1 zq concat.gz 2 line 2 zq concat.gz 1 2 line 1 ERROR: Error from zlib : data error
For now I am happy it even indexes concatenated gzip files. Thanks! René