Linter fixes

This commit is contained in:
Uwe L. Korn committed 2016-06-07 09:00:37 +02:00
1 parent 0514d01a39
commit 8f6010aa58
2 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -32,9 +32,9 @@ namespace parquet {
} catch (const ::parquet::ParquetException& e) { return Status::Invalid(e.what()); }
#define PARQUET_IGNORE_NOT_OK(s) \
try { \
(s); \
} catch (const ::parquet::ParquetException& e) { }
try { \
(s); \
} catch (const ::parquet::ParquetException& e) {}
} // namespace parquet
+2 -1
View File
@@ -192,7 +192,8 @@ Status WriteFlatTable(const Table* table, MemoryPool* pool,
int64_t size = std::min(chunk_size, table->num_rows() - offset);
RETURN_NOT_OK_ELSE(writer.NewRowGroup(size), PARQUET_IGNORE_NOT_OK(writer.Close()));
for (int i = 0; i < table->num_columns(); i++) {
RETURN_NOT_OK_ELSE(writer.WriteFlatColumnChunk(arrays[i].get(), offset, size), PARQUET_IGNORE_NOT_OK(writer.Close()));
RETURN_NOT_OK_ELSE(writer.WriteFlatColumnChunk(arrays[i].get(), offset, size),
PARQUET_IGNORE_NOT_OK(writer.Close()));
}
}