impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitris Tsirogiannis (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5500: Reduce catalog update topic size
Date Tue, 27 Jun 2017 04:17:03 GMT
Dimitris Tsirogiannis has posted comments on this change.

Change subject: IMPALA-5500: Reduce catalog update topic size

Patch Set 2:

File be/src/catalog/

Line 330:       if (!status.ok()) {
> take out of if/else since it's common to both cases

Line 367:   uint8_t* compressed_buffer_ptr = &compressed_buffer[0];

Line 370:   // Base64 encode the compressed catalog object and store it in the topic item.
> Is base64-encoding really necessary? Why don't the raw bytes work?
Hm, not really. It works without it, I only used it because the topic items use strings for
keys and values. Removed it.
File be/src/catalog/catalog-server.h:

Line 200:   /// Serializes 'catalog_object' and compresses it using Snappy compression.
> remove second "compression"
File be/src/service/

Line 1417: Status ImpalaServer::DecompressAndDeserializeCatalogObject(const TTopicItem&
> Why not separate decompression from deserialization? Seem like separate con
File be/src/util/compress.h:

Line 103:   SnappyCompressor(MemPool* mem_pool = NULL, bool reuse_buffer = false);
> Why these changes? Shouldn't these always be created using CreateCompressor
oops forgot about these. I was playing around with directly creating the compressor. reverted.
File tests/custom_cluster/

Line 45:           "select count(*) from functional.alltypes")
> Check result? Maybe also use another query on a parquet table.
Added the result check. Out of curiosity, what's so special about the parquet table in this

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I2f725cd8596205e6101d5b56abf08125faa30b0a
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-HasComments: Yes

View raw message