agavra commented on code in PR #9818:
URL: https://github.com/apache/pinot/pull/9818#discussion_r1025881593
##########
pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotCatalog.java:
##########
@@ -63,7 +63,11 @@ public PinotCatalog(TableCache tableCache) {
@Override
public Table getTable(String name) {
String tableName = TableNameBuilder.extractRawTableName(name);
- return new PinotTable(_tableCache.getSchema(tableName));
+ org.apache.pinot.spi.data.Schema schema = _tableCache.getSchema(tableName);
+ if (schema == null) {
+ throw new IllegalArgumentException("Could not find schema for table: " +
tableName);
+ }
Review Comment:
I updated the error message, hopefully it's a bit better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]