crossoverJie commented on code in PR #20911: URL: https://github.com/apache/pulsar/pull/20911#discussion_r1333347988
########## pulsar-sql/presto-pulsar/src/main/java/org/apache/pulsar/sql/presto/PulsarSplitManager.java: ########## @@ -328,6 +328,9 @@ Collection<PulsarSplit> getSplitsForTopic(String topicNamePersistenceEncoding, splits.add(pulsarSplit); } return splits; + } catch (ManagedLedgerException exception){ Review Comment: Great suggestion, but I did not return null after consideration, but returned `PositionImpl.EARLIEST`, otherwise every place that calls this function will need to do one NPE check. -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org