Skip to content

feat(classifier): more nested query cases #2921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion flow/alerting/classifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,25 @@ func GetErrorClass(ctx context.Context, err error) (ErrorClass, ErrorInfo) {
}
case 439: // CANNOT_SCHEDULE_TASK
return ErrorRetryRecoverable, chErrorInfo
case chproto.ErrIllegalTypeOfArgument:
case chproto.ErrUnsupportedMethod,
chproto.ErrIllegalColumn,
chproto.ErrDuplicateColumn,
chproto.ErrNotFoundColumnInBlock,
chproto.ErrUnknownIdentifier,
chproto.ErrUnknownFunction,
chproto.ErrBadTypeOfField,
chproto.ErrTooDeepRecursion,
chproto.ErrTypeMismatch,
chproto.ErrCannotConvertType,
chproto.ErrIncompatibleColumns,
chproto.ErrUnexpectedExpression,
chproto.ErrIllegalAggregation,
chproto.ErrNotAnAggregate,
chproto.ErrSizesOfArraysDoesntMatch,
chproto.ErrAliasRequired,
691, // UNKNOWN_ELEMENT_OF_ENUM
chproto.ErrNoCommonType,
chproto.ErrIllegalTypeOfArgument:
var qrepSyncError *exceptions.QRepSyncError
if errors.As(err, &qrepSyncError) {
unexpectedSelectRe, reErr := regexp.Compile(
Expand Down