Git Product home page Git Product logo

Comments (7)

kwent avatar kwent commented on August 11, 2024 3

I actually made it work with that fork: https://github.com/kwent/activerecord6-redshift-adapter and tested in a production environment 🎉

from activerecord5-redshift-adapter.

booleanbetrayal avatar booleanbetrayal commented on August 11, 2024

Also looking for a suitable Redshift adapter for ActiveRecord 6.0.0. Does anyone know if there's been any effort to producing a compatible adapter yet? Blocked on upgrading atm.

from activerecord5-redshift-adapter.

booleanbetrayal avatar booleanbetrayal commented on August 11, 2024

This looks promising - https://github.com/iamdbc/activerecord6-redshift-adapter

from activerecord5-redshift-adapter.

kwent avatar kwent commented on August 11, 2024

Seeing

undefined method `preparable=' for #<Arel::Visitors::PostgreSQL:0x00007f6080954d80>

with https://github.com/iamdbc/activerecord6-redshift-adapter

from activerecord5-redshift-adapter.

booleanbetrayal avatar booleanbetrayal commented on August 11, 2024

@kwent - I'm still running into adapter compatibility issues that were exposed when attempting to use Rails migrator tasks against our Redshift DB. I've been fleshing them out as I go here:

https://github.com/booleanbetrayal/activerecord6-redshift-adapter/tree/more_activerecord-6_fixes

Currently hitting the following issue though, writing timestamps:

PG::InvalidDatetimeFormat: ERROR:  invalid input syntax for type timestamp: "#<ActiveRecord::Relation::QueryAttribute:0x00007f9d6bcb1aa0>"
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:466:in `async_exec'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:466:in `block in exec_no_cache'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:707:in `block (2 levels) in log'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:706:in `block in log'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activesupport-6.0.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:697:in `log'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:466:in `exec_no_cache'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift_adapter.rb:456:in `execute_and_clear'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift/database_statements.rb:159:in `exec_query'
~/Development/GitHub-Forks/activerecord6-redshift-adapter/lib/active_record/connection_adapters/redshift/database_statements.rb:191:in `exec_insert'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:162:in `insert'
~/.rvm/gems/ruby-2.6.3@back_royal/gems/activerecord-6.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `insert'

from activerecord5-redshift-adapter.

booleanbetrayal avatar booleanbetrayal commented on August 11, 2024

Actually, I just fixed this issue and a few others and opened a pull request to your repo @kwent . Let me know if you'd rather not maintain it, and I can stand a repo up from a fork of this one ^.

kwent#1

from activerecord5-redshift-adapter.

kwent avatar kwent commented on August 11, 2024

Closing this issue since we are now going to iterate on https://github.com/kwent/activerecord6-redshift-adapter

from activerecord5-redshift-adapter.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.