-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from samansmink/fix-count-star-issue
Fix count star issue & unauthorized s3 requests
- Loading branch information
Showing
9 changed files
with
1,027 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include "duckdb.hpp" | ||
|
||
namespace duckdb { | ||
|
||
class ParquetOverrideFunction { | ||
public: | ||
static TableFunctionSet GetFunctionSet(); | ||
}; | ||
|
||
} // namespace duckdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Overridden Parquet Scan | ||
This exists because some upstream changes in the parquet reader are required right now. | ||
|
||
|
||
## Changes made | ||
### Fix extra columns not allowed for count(*) queries | ||
|
||
In the parquet_extension.cpp `ParquetInitGlobalMethod` | ||
We changed: | ||
```c++ | ||
result->projection_ids = input.projection_ids; | ||
``` | ||
into | ||
```c++ | ||
if (!input.projection_ids.empty()) { | ||
result->projection_ids = input.projection_ids; | ||
} else { | ||
result->projection_ids.resize(input.column_ids.size()); | ||
iota(begin(result->projection_ids), end(result->projection_ids), 0); | ||
} | ||
``` | ||
to esnure the projections ids are set even if they are trivial: in the case where | ||
the delta extension has added extra columns, we need the trivial projection ids | ||
to ensure the extra columns are removed before leaving the scan |
Oops, something went wrong.