Shopify / ghostferry

The swiss army knife of live data migrations
https://shopify.github.io/ghostferry
MIT License
696 stars 65 forks source link

WIP assertion on json type with a floating point value with zero fractional part #353

Open pawandubey opened 1 month ago

pawandubey commented 1 month ago

…tional part

Go test (passes): DEBUG=1 go test ./... -v -run='TestDMLEventsTestSuite' Ruby integration test (fails):

DEBUG=1 bundle exec ruby test/main.rb -v -n "TypesTest#test_json_data_update" && DEBUG=1 bundle exec ruby test/main.rb -v -n "TypesTest#test_json_data_insert"

This means that if the right value is supplied to the ghostferry types, it generates the correct statement (hence the go unit test passes) but if it gets bad values from the go-mysql-org library, it fails as expected.