From 4266e3690f6adb5cd4a7cc6cee7c7cdd41d395b1 Mon Sep 17 00:00:00 2001 From: zachjsh Date: Wed, 28 Jun 2023 14:38:36 -0400 Subject: [PATCH] Make errorCode of InsertTimeOutOfBoundsFault consistent with others The errorCode of this fault when serialized over the wire was being set to the name of the class `InsertTimeOutOfBoundsFault` instead of the CODE `InsertTimeOutOfBounds`. All other faults' errorCodes are serialized as the respective Fault's code, so making consistent here as well. --- .../druid/msq/indexing/error/InsertTimeOutOfBoundsFault.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/error/InsertTimeOutOfBoundsFault.java b/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/error/InsertTimeOutOfBoundsFault.java index c15a3fb6d17a..18b9a9eda331 100644 --- a/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/error/InsertTimeOutOfBoundsFault.java +++ b/extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/error/InsertTimeOutOfBoundsFault.java @@ -20,10 +20,12 @@ package org.apache.druid.msq.indexing.error; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeName; import org.joda.time.Interval; import java.util.Objects; +@JsonTypeName(InsertTimeOutOfBoundsFault.CODE) public class InsertTimeOutOfBoundsFault extends BaseMSQFault { static final String CODE = "InsertTimeOutOfBounds";