[no-release-notes] bump truncation refactor and fix some tests (#9880)

This commit is contained in:
James Cor
2025-09-29 16:24:23 -07:00
committed by GitHub
parent e94e9dfb05
commit 0ab5d6f943
5 changed files with 7 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ require (
github.com/dolthub/dolt-mcp v0.2.2-0.20250917171427-13e4520d1c36
github.com/dolthub/eventsapi_schema v0.0.0-20250915094920-eadfd39051ca
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
github.com/dolthub/go-mysql-server v0.20.1-0.20250928233530-c1e36e7ceb3d
github.com/dolthub/go-mysql-server v0.20.1-0.20250929222015-fb75d24833be
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63
github.com/edsrzf/mmap-go v1.2.0
github.com/esote/minmaxheap v1.0.0

View File

@@ -213,8 +213,8 @@ github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
github.com/dolthub/fslock v0.0.3/go.mod h1:QWql+P17oAAMLnL4HGB5tiovtDuAjdDTPbuqx7bYfa0=
github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790 h1:zxMsH7RLiG+dlZ/y0LgJHTV26XoiSJcuWq+em6t6VVc=
github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790/go.mod h1:F3cnm+vMRK1HaU6+rNqQrOCyR03HHhR1GWG2gnPOqaE=
github.com/dolthub/go-mysql-server v0.20.1-0.20250928233530-c1e36e7ceb3d h1:6Oie9m0+JMGTUGUWYX7EpDqDx1U6XwJ3GGOhxXWey68=
github.com/dolthub/go-mysql-server v0.20.1-0.20250928233530-c1e36e7ceb3d/go.mod h1:0xNI8CiZ0Bczhe9XVSpY2bvpMRoQPBUDA4ZIGHAm60Y=
github.com/dolthub/go-mysql-server v0.20.1-0.20250929222015-fb75d24833be h1:pYxh5qiEZcJ44qcmjv42X4xhoez32w6+bP2iggCCyek=
github.com/dolthub/go-mysql-server v0.20.1-0.20250929222015-fb75d24833be/go.mod h1:0xNI8CiZ0Bczhe9XVSpY2bvpMRoQPBUDA4ZIGHAm60Y=
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI=
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q=
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE=

View File

@@ -230,8 +230,8 @@ func TestIntParseValue(t *testing.T) {
{
Int64Type,
"100.5",
101,
false,
100,
true,
},
{
Int32Type,

View File

@@ -134,7 +134,7 @@ func (c ProllyRowConverter) putFields(ctx context.Context, tup val.Tuple, proj v
if t := targetTypes[i]; t != nil {
var inRange sql.ConvertInRange
dstRow[j], inRange, err = t.Convert(ctx, f)
if sql.ErrInvalidValue.Is(err) && c.warnFn != nil {
if (sql.ErrInvalidValue.Is(err) || sql.ErrTruncatedIncorrect.Is(err)) && c.warnFn != nil {
col := c.inSchema.GetAllCols().GetByIndex(i)
c.warnFn(rowconv.DatatypeCoercionFailureWarningCode, rowconv.DatatypeCoercionFailureWarning, col.Name)
dstRow[j] = nil

View File

@@ -541,7 +541,7 @@ pk,v
4,-3.5953862697246314162905484746340871359614113505168999e+308
DELIM
run dolt table import -u test double.csv
[ "$status" -ne "0" ]
[ "$status" -eq "0" ]
# check information_schema.COLUMNS table
run dolt sql -q "select * from information_schema.COLUMNS where table_name = 'test' and column_name = 'v';" -r csv