vvysotskyi commented on a change in pull request #2389:
URL: https://github.com/apache/drill/pull/2389#discussion_r759289681
##########
File path:
contrib/format-iceberg/src/main/java/org/apache/drill/exec/store/iceberg/plan/IcebergPluginImplementor.java
##########
@@ -99,6 +99,9 @@ public boolean canImplement(Filter filter) {
try {
TableScan tableScan =
DrillRelOptUtil.findScan(filter.accept(SubsetRemover.INSTANCE));
DrillTable drillTable = DrillRelOptUtil.getDrillTable(tableScan);
Review comment:
But please use `Optional` to simplify the code with multiple consequent
null checks.
--
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]