Jackie-Jiang commented on a change in pull request #7645:
URL: https://github.com/apache/pinot/pull/7645#discussion_r741554747
##########
File path:
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/creator/SegmentGeneratorConfig.java
##########
@@ -286,6 +288,14 @@ public void setCustomProperties(Map<String, String>
properties) {
_customProperties.putAll(properties);
}
+ private void setDateTimeFormatSpec(DateTimeFormatSpec formatSpec) {
+ _dateTimeFormatSpec = formatSpec;
Review comment:
We should also set `_timeColumnType` and `_segmentTimeUnit` accordingly
##########
File path:
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/creator/SegmentGeneratorConfig.java
##########
@@ -286,6 +288,14 @@ public void setCustomProperties(Map<String, String>
properties) {
_customProperties.putAll(properties);
}
+ private void setDateTimeFormatSpec(DateTimeFormatSpec formatSpec) {
Review comment:
Let's make this api public to replace the current
`setSimpleDateFormat()`. To keep consistent behavior, we should not allow
setting just the SDF
##########
File path:
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/creator/SegmentGeneratorConfig.java
##########
@@ -286,6 +288,14 @@ public void setCustomProperties(Map<String, String>
properties) {
_customProperties.putAll(properties);
}
+ private void setDateTimeFormatSpec(DateTimeFormatSpec formatSpec) {
+ _dateTimeFormatSpec = formatSpec;
+ }
+
+ public DateTimeFormatSpec getDateTimeFormatSpec() {
+ return _dateTimeFormatSpec;
+ }
+
public void setSimpleDateFormat(String simpleDateFormat) {
Review comment:
Let's remove the setter and getter for SDF to ensure the correct behavior
--
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]