Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Oct 29, 2020
1 parent f103606 commit 44ec8ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lightning/mydump/parquet_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"path/filepath"
"strconv"

"github.com/pingcap/parser/mysql"

"github.com/pingcap/br/pkg/storage"
. "github.com/pingcap/check"
"github.com/pingcap/tidb/types"
Expand Down Expand Up @@ -55,7 +57,7 @@ func (s testParquetParserSuite) TestParquetParser(c *C) {
verifyRow := func(i int) {
c.Assert(reader.lastRow.RowID, Equals, int64(i+1))
c.Assert(len(reader.lastRow.Row), Equals, 2)
c.Assert(reader.lastRow.Row[0], DeepEquals, types.NewCollationStringDatum(strconv.Itoa(i), "", 0))
c.Assert(reader.lastRow.Row[0], DeepEquals, types.NewCollationStringDatum(strconv.Itoa(i), mysql.DefaultCollationName, 0))
c.Assert(reader.lastRow.Row[1], DeepEquals, types.NewIntDatum(int64(i)))
}

Expand Down
2 changes: 1 addition & 1 deletion tests/parquet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ for BACKEND in local importer tidb; do

run_sql 'select c_since, c_discount from test.customer where c_id = 20;'
check_contains "c_since: 2020-09-10 20:17:16"
check_container "c_discount: 0.0585"
check_contains "c_discount: 0.0585"
done

0 comments on commit 44ec8ed

Please sign in to comment.