mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Linter fixes
This commit is contained in:
1 parent
0514d01a39
commit
8f6010aa58
2 files changed
+5
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user