Skip to content

Commit

Permalink
Throw exception on reading an unsupported parquet file (#4640)
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotrashivam authored Oct 16, 2023
1 parent 5a4e368 commit 0a65346
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ public Table aggAllBy(AggSpec spec, ColumnName... groupByColumns) {
* @param tableColumns the table columns
* @return the aggregation, if non-empty
*/
@VisibleForTesting
static Optional<Aggregation> singleAggregation(
AggSpec spec, Collection<? extends ColumnName> groupByColumns,
Collection<? extends ColumnName> tableColumns) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ public void addElements(int elementsCount) {

@Override
public void addValues(int valuesCount) {
if (rangeCap.position() == 0) {
throw new IllegalStateException("Cannot add more values to this repeating level. It's possible that a "
+ "single row is getting split across pages, which is not supported.");
// TODO(deephaven-core:#4628) - Support this case
}
rangeCap.put(rangeCap.position() - 1, childValueCount += valuesCount);
}

Expand Down

0 comments on commit 0a65346

Please sign in to comment.