Shopify / ghostferry

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

299 mediumint unsigned fixed #300

Closed HemeraOne closed 2 years ago

HemeraOne commented 2 years ago

fixes #299

shuhaowu commented 2 years ago

Can you create a PR with only the fix for mediumint?

HemeraOne commented 2 years ago

Done!

shuhaowu commented 2 years ago

Thanks for the PR. Is it possible for you to add a test here? https://github.com/Shopify/ghostferry/blob/master/test/integration/types_test.rb

HemeraOne commented 2 years ago

I can't get the ruby test thing to work on my machine, so I'm afraid I can't

shuhaowu commented 2 years ago

I can't get the ruby test thing to work on my machine, so I'm afraid I can't

Do you have an error? For ruby testing, you can use nix-shell to run it if you have that. Otherwise a standard install of Ruby with bundler should just work.

HemeraOne commented 2 years ago

I can't get the ruby test thing to work on my machine, so I'm afraid I can't

Do you have an error? For ruby testing, you can use nix-shell to run it if you have that. Otherwise a standard install of Ruby with bundler should just work.

/usr/lib/ruby/2.7.0/mkmf.rb:1050:in `block in find_library': undefined method `split' for nil:NilClass (NoMethodError)
        from /usr/lib/ruby/2.7.0/mkmf.rb:1050:in `collect'
        from /usr/lib/ruby/2.7.0/mkmf.rb:1050:in `find_library'
        from extconf.rb:87:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/mysql2-0.5.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.7.0/gems/mysql2-0.5.3 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/mysql2-0.5.3/gem_make.out

An error occurred while installing mysql2 (0.5.3), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.5.3' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  mysql2
make: *** [Makefile:68: test-ruby] Error 5
HemeraOne commented 2 years ago

there seems to be more issues, will look further tomorrow

shuhaowu commented 2 years ago

you need mysql client development headers installed on your computer to install mysql2. libmysqlclient-dev for something like ubuntu.

there seems to be more issues, will look further tomorrow

Having a comprehensive integration test may help you iron out all the issue in one go.