github-code-scanning[bot] commented on code in PR #14534:
URL: https://github.com/apache/druid/pull/14534#discussion_r1259201655
##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/sql/MSQTaskSqlEngine.java:
##########
@@ -237,11 +246,10 @@
validateLimitAndOffset(rootRel, !hasSegmentGranularity);
if (hasSegmentGranularity && timeFieldIndex < 0) {
- throw new ValidationException(
- StringUtils.format(
- "INSERT queries with segment granularity other than \"all\" must
have a \"%s\" field.",
- ColumnHolder.TIME_COLUMN_NAME
- )
+ throw InvalidInput.exception(
+ "The granularity [%s] specified in the PARTITIONED BY clause of the
INSERT query is different from ALL."
+ + "Therefore, the query must specify a time column (named __time).",
Review Comment:
## Missing space in string literal
This string appears to be missing a space after 'ALL.'.
[Show more
details](https://github.com/apache/druid/security/code-scanning/5262)
--
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]