Skip to content

Commit 37679fe

Browse files
committed
fix test
1 parent 98f713a commit 37679fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dumpling/export/string_chunking_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@ func TestLowerBoundQueryLimitClause(t *testing.T) {
290290
boundary := []string{"m10005594745"}
291291

292292
whereClause := buildLowerBoundWhereClause(columnNames, boundary)
293-
expected := "`item_id` > 'm10005594745'"
293+
expected := "`item_id` >= 'm10005594745'"
294294
require.Equal(t, expected, whereClause, "Single column lower bound should generate correct WHERE clause")
295295

296296
// Test composite key lower bound (the scenario from the issue)
297297
columnNames = []string{"item_id", "photo_index"}
298298
boundary = []string{"m10005594745", "9"}
299299

300300
whereClause = buildLowerBoundWhereClause(columnNames, boundary)
301-
expected = "`item_id` > 'm10005594745' OR (`item_id` = 'm10005594745' AND `photo_index` > '9')"
301+
expected = "`item_id` > 'm10005594745' OR (`item_id` = 'm10005594745' AND `photo_index` >= '9')"
302302
require.Equal(t, expected, whereClause, "Composite key lower bound should generate correct WHERE clause")
303303

304304
// Test that boundary-first approach with cursor-based sampling is optimal

0 commit comments

Comments
 (0)