clintropolis commented on code in PR #12727:
URL: https://github.com/apache/druid/pull/12727#discussion_r911630026
##########
sql/src/main/java/org/apache/druid/sql/calcite/schema/DruidSchema.java:
##########
@@ -402,6 +403,11 @@ void refresh(final Set<SegmentId> segmentsToRefresh, final
Set<String> dataSourc
// Rebuild the dataSources.
for (String dataSource : dataSourcesToRebuild) {
final DruidTable druidTable = buildDruidTable(dataSource);
+ if (druidTable == null) {
Review Comment:
:+1: added a test, the added test fails on the 2nd assert with
```
java.lang.AssertionError: expected null, but was:<DruidTable{dataSource=wat,
rowSignature={}}>
```
prior to the changes in this PR
--
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]