Skip to content

Commit 81d02ea

Browse files
authored
Classify too large string for FixedString (#3699)
1 parent 28f10b0 commit 81d02ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flow/alerting/classifier.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,11 @@ func GetErrorClass(ctx context.Context, err error) (ErrorClass, ErrorInfo) {
699699
Code: strconv.Itoa(int(chException.Code)),
700700
}
701701
switch chproto.Error(chException.Code) {
702-
case chproto.ErrUnknownTable, chproto.ErrNoSuchColumnInTable:
702+
case chproto.ErrUnknownTable,
703+
chproto.ErrNoSuchColumnInTable,
704+
// "Too large string for FixedString column: (at row 10195)"
705+
// The only one created by us is FixedString(1) for PG QChar so assuming the user did it for a string and it didn't work
706+
chproto.ErrTooLargeStringSize:
703707
if isClickHouseMvError(chException) {
704708
return ErrorNotifyMVOrView, chErrorInfo
705709
}

0 commit comments

Comments
 (0)