1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-09-16 22:49:59 +00:00

Move some code out of ensureColumn

Saves ~4% on the cold census needle query (~425ms -> ~405ms)
This commit is contained in:
Colin Dellow
2018-06-23 19:10:23 -04:00
parent b9c58bd97e
commit d7c5002cee
3 changed files with 17 additions and 10 deletions

View File

@@ -13,6 +13,11 @@ std::string ParquetTable::columnName(int i) {
return columnNames[i];
}
unsigned int ParquetTable::getNumColumns() {
return columnNames.size();
}
std::string ParquetTable::CreateStatement() {
std::unique_ptr<parquet::ParquetFileReader> reader = parquet::ParquetFileReader::OpenFile(
file.data(),