You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/06/16 04:47:31 UTC
[GitHub] [incubator-pinot] Jackie-Jiang commented on a change in pull request #5571: Issue 5558
Jackie-Jiang commented on a change in pull request #5571:
URL: https://github.com/apache/incubator-pinot/pull/5571#discussion_r440583478
##########
File path: pinot-common/src/main/java/org/apache/pinot/common/utils/config/TableConfigUtils.java
##########
@@ -211,6 +211,10 @@ private static void validateFieldConfigList(TableConfig tableConfig) {
private static void validateValidationConfig(TableConfig tableConfig) {
SegmentsValidationAndRetentionConfig validationConfig = tableConfig.getValidationConfig();
if (validationConfig != null) {
+ String timeColumnName = validationConfig.getTimeColumnName();
+ if(timeColumnName == null) {
+ throw new IllegalStateException("Must provide valid timeColumnName in tableConfig");
+ }
Review comment:
Only force time column for real-time table, and please fix the format
```suggestion
if (tableConfig.getTableType() == TableType.REALTIME && validationConfig.getTimeColumnName() == null) {
throw new IllegalStateException("Must provide time column in real-time table config");
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org