From 85425baacbeef8506d0b0d7cdf2c1de88ac43757 Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Wed, 22 Nov 2023 10:22:15 +0800 Subject: [PATCH] [Go]: Fix return wrong error (#92) Signed-off-by: sunby --- go/storage/schema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/storage/schema/schema.go b/go/storage/schema/schema.go index 9c560e5..5876c8e 100644 --- a/go/storage/schema/schema.go +++ b/go/storage/schema/schema.go @@ -125,7 +125,7 @@ func (s *Schema) BuildDeleteSchema() error { } versionField, ok := s.schema.FieldsByName(s.options.VersionColumn) if !ok { - return ErrPrimaryColumnNotFound + return ErrVersionColumnNotFound } fields := make([]arrow.Field, 0, 2) fields = append(fields, pkColumn[0])