You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/03/23 15:47:45 UTC

[GitHub] [arrow] pitrou opened a new pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

pitrou opened a new pull request #9782:
URL: https://github.com/apache/arrow/pull/9782


   


-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou closed pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou closed pull request #9782:
URL: https://github.com/apache/arrow/pull/9782


   


-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou commented on a change in pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou commented on a change in pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#discussion_r614981828



##########
File path: cpp/src/parquet/types.cc
##########
@@ -69,11 +69,6 @@ std::unique_ptr<Codec> GetCodec(Compression::type codec, int compression_level)
     throw ParquetException(ss.str());
   }
 
-  if (codec == Compression::LZ4) {

Review comment:
       We're not deprecating anything, `Compression::LZ4` simply means "use the LZ4 raw (block) format" as it was always meant to be. We're unable to reliably produce Hadoop-readable files anywhere, it would be counter-productive to still produce them by default.

##########
File path: cpp/src/parquet/types.cc
##########
@@ -69,11 +69,6 @@ std::unique_ptr<Codec> GetCodec(Compression::type codec, int compression_level)
     throw ParquetException(ss.str());
   }
 
-  if (codec == Compression::LZ4) {

Review comment:
       We're not deprecating anything, `Compression::LZ4` simply means "use the LZ4 raw (block) format" as it was always meant to be. We're unable to reliably produce Hadoop-readable files anyway, it would be counter-productive to still produce them by default.




-- 
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:
users@infra.apache.org



[GitHub] [arrow] emkornfield commented on a change in pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
emkornfield commented on a change in pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#discussion_r614537854



##########
File path: cpp/src/parquet/file_serialize_test.cc
##########
@@ -330,8 +330,7 @@ TYPED_TEST(TestSerialize, SmallFileGzip) {
 
 #ifdef ARROW_WITH_LZ4
 TYPED_TEST(TestSerialize, SmallFileLz4) {
-  ASSERT_NO_FATAL_FAILURE(
-      this->FileSerializeTest(Compression::LZ4, Compression::LZ4_HADOOP));
+  ASSERT_NO_FATAL_FAILURE(this->FileSerializeTest(Compression::LZ4));

Review comment:
       shouldn't we start to fail with LZ4?  Or at least have a warning?




-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou commented on a change in pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou commented on a change in pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#discussion_r614980589



##########
File path: cpp/src/parquet/parquet.thrift
##########
@@ -17,11 +17,11 @@
  * under the License.

Review comment:
       Yes!




-- 
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:
users@infra.apache.org



[GitHub] [arrow] emkornfield commented on pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
emkornfield commented on pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#issuecomment-820882407


   > @emkornfield Should we merge apache/parquet-testing#18 to add integration tests here?
   
   Yes, I think if the release is merged, then Gabor should be OK with merging.
   
   > Also, would you be interested to work on the Java implementation in parquet-mr ?
   
   I'll take a look at whats required I think I saw you tagged me on the JIRA


-- 
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:
users@infra.apache.org



[GitHub] [arrow] emkornfield commented on a change in pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
emkornfield commented on a change in pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#discussion_r614538024



##########
File path: cpp/src/parquet/parquet.thrift
##########
@@ -17,11 +17,11 @@
  * under the License.

Review comment:
       this is just copying from the new release?




-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou commented on pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#issuecomment-819617678


   @emkornfield Should we merge https://github.com/apache/parquet-testing/pull/18 to add integration tests here?
   Also, would you be interested to work on the Java implementation in [parquet-mr](https://github.com/apache/parquet-mr/) ?


-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou commented on pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#issuecomment-824943672


   @emkornfield I think this is now ready, do you want to give a review again?


-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou commented on pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#issuecomment-805013433


   Need to add an integration test once https://github.com/apache/parquet-testing/pull/18 is merged.


-- 
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:
users@infra.apache.org



[GitHub] [arrow] emkornfield commented on a change in pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
emkornfield commented on a change in pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#discussion_r614538476



##########
File path: cpp/src/parquet/types.cc
##########
@@ -69,11 +69,6 @@ std::unique_ptr<Codec> GetCodec(Compression::type codec, int compression_level)
     throw ParquetException(ss.str());
   }
 
-  if (codec == Compression::LZ4) {

Review comment:
       it this right?  how are we going about deprecating LZ4 vs LZ4 RAW or is that  different issue/PR?




-- 
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:
users@infra.apache.org



[GitHub] [arrow] github-actions[bot] commented on pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#issuecomment-805121864


   https://issues.apache.org/jira/browse/PARQUET-1998


-- 
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:
users@infra.apache.org



[GitHub] [arrow] emkornfield commented on pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
emkornfield commented on pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#issuecomment-824945332


   LGTM, feel free to merge when CI is green.


-- 
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:
users@infra.apache.org



[GitHub] [arrow] pitrou commented on a change in pull request #9782: PARQUET-1998: [C++] Implement LZ4_RAW compression

Posted by GitBox <gi...@apache.org>.
pitrou commented on a change in pull request #9782:
URL: https://github.com/apache/arrow/pull/9782#discussion_r614980272



##########
File path: cpp/src/parquet/file_serialize_test.cc
##########
@@ -330,8 +330,7 @@ TYPED_TEST(TestSerialize, SmallFileGzip) {
 
 #ifdef ARROW_WITH_LZ4
 TYPED_TEST(TestSerialize, SmallFileLz4) {
-  ASSERT_NO_FATAL_FAILURE(
-      this->FileSerializeTest(Compression::LZ4, Compression::LZ4_HADOOP));
+  ASSERT_NO_FATAL_FAILURE(this->FileSerializeTest(Compression::LZ4));

Review comment:
       Hmm, no, `Compression::LZ4` is exactly the LZ4 raw format.




-- 
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:
users@infra.apache.org