gortiz commented on code in PR #14918: URL: https://github.com/apache/pinot/pull/14918#discussion_r1930118355
########## pinot-query-planner/src/main/java/org/apache/pinot/query/parser/utils/ParserUtils.java: ########## @@ -53,95 +54,87 @@ public static boolean canCompileWithMultiStageEngine(String query, String databa } /** - * Tries to fill an empty or not properly filled schema when no rows have been returned. + * Tries to fill an empty or not properly filled {@link DataSchema} when no row has been returned. + * + * Response data schema can be inaccurate or incomplete in several forms: + * 1. No result table at all (when all segments have been pruned on broker). + * 2. Data schema has all columns set to default type (STRING) (when all segments pruned on server). Review Comment: I have contradictory feelings about explaining why some issues can happen in the generic method that solves them. On the one hand, it is useful to have the reasons centralized. On the other hand, it is a clear candidate for documentation that could be desynchronized with the code (ie we change one of these cases and forget to change the javadoc). -- 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...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org