Make errorCode of InsertTimeOutOfBoundsFault consistent with others (#14495)

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.
This commit is contained in:
zachjsh 2023-07-13 14:34:21 -04:00 committed by GitHub
parent f4ee58eaa8
commit 589aac8b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -20,11 +20,13 @@
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.List;
import java.util.Objects;
@JsonTypeName(InsertTimeOutOfBoundsFault.CODE)
public class InsertTimeOutOfBoundsFault extends BaseMSQFault
{
static final String CODE = "InsertTimeOutOfBounds";