Closed HuGanghui closed 3 years ago
/lgtm
/rebuild
and the integration failed: FAIL github.com/pingcap/tidb/planner/core 149.403s
Is ok? And I am not sure why this happened, if need to be fixed please give some guidance.
/run-all-tests
and the integration failed:
FAIL github.com/pingcap/tidb/planner/core 149.403s
Is ok? And I am not sure why this happened, if need to be fixed please give some guidance.
you can checkout the circle CI's log by clicking details (or see it here)
your code breaks the TiDB's test, namely:
----------------------------------------------------------------------
FAIL: typeinfer_test.go:56: testInferTypeSuite.TestInferType
typeinfer_test.go:152:
c.Assert(tp.Flen, Equals, tt.flen, comment)
... obtained int = 10
... expected int = 11
... for select CAST(c_int_d AS DECIMAL) from t
OOPS: 574 passed, 1 skipped, 1 FAILED
--- FAIL: TestT (25.35s)
you need to fix them accordingly on TiDB's side.
I have also commented on the original issue, https://github.com/pingcap/tidb/issues/23495#issuecomment-809980259 please take a look.
Let me know if you have any questions.
@ichn-hu ok, thanks for you help, I will try to correct it.
/lgtm
What problem does this PR solve?
Fix https://github.com/pingcap/tidb/issues/23495 in TiDB
What is changed and how it works?
modify TypeNewDecimal length in defaultLengthAndDecimalForCast from 11 to 10.
Check List
Tests