Skip to content

Commit

Permalink
fix(query) the schema provided by _type_ does not match colIDs in the…
Browse files Browse the repository at this point in the history
… data.
  • Loading branch information
Yu Zhang committed Oct 10, 2024
1 parent 22d0b08 commit a6c86f3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ TimeSeriesShard(ref, schemas, storeConfig, numShards, quotaSource, shardNum, buf
colIds: Seq[Types.ColumnId],
querySession: QuerySession): Observable[ReadablePartition] = {

// To support _type_ query, this filters the data schema that matches the colIds.
if (partLookupRes.firstSchemaId.map(schId => Schemas.global.apply(schId))
.filter(sch => sch != null)
.exists(sch => sch.data.columns.size <= colIds.max)) {
return Observable.empty
}

capDataScannedPerShardCheck(partLookupRes, colIds, querySession.qContext, querySession.warnings)

// For now, always read every data column.
Expand Down

0 comments on commit a6c86f3

Please sign in to comment.