Giter Site home page Giter Site logo

dbDisconnect error on CentOS about implyr HOT 8 CLOSED

ianmcook avatar ianmcook commented on June 5, 2024
dbDisconnect error on CentOS

from implyr.

Comments (8)

ianmcook avatar ianmcook commented on June 5, 2024

I'm not able to reproduce this error in my tests on CentOS. Can you paste the code you're using to connect and disconnect (with credentials redacted)? Thanks.

from implyr.

mpgilliam avatar mpgilliam commented on June 5, 2024

Code Ran:
library(odbc) # Version 1.1.5
library(dplyr) # Version 0.7.4
library(implyr) # Version 0.2.2
drv <- odbc::odbc()
imp <- src_impala(drv = drv, driver = "Cloudera ODBC Driver for Impala", host = "IP", port = 21050, database = "DB")
df <- dbGetQuery(imp, "select * from DB.TABLE")
dbDisconnect(imp)

Error Received:
Error: type must be a single element of type 'character'

System Info:
$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.9 (Final)
Release: 6.9
Codename: Final

from implyr.

ianmcook avatar ianmcook commented on June 5, 2024

This looks like a method dispatch error. implyr passes along the dbDisconnect() call to the underlying connection in imp$con but it looks like something might be going wrong there. Does the error go away if you do: dbDisconnect(imp$con)?

from implyr.

mpgilliam avatar mpgilliam commented on June 5, 2024

I am still recieveing the same error with the dbDisconnect(imp$con) line.
image

from implyr.

ianmcook avatar ianmcook commented on June 5, 2024

This is mystifying me. Can you run traceback() immediately after the error occurs and paste the output here? That should help me to understand which function in which package is throwing the error. Thanks.

from implyr.

ianmcook avatar ianmcook commented on June 5, 2024

I was finally able to reproduce this error. I'll work on resolving it as soon as I can.

from implyr.

ianmcook avatar ianmcook commented on June 5, 2024

This is fixed in the version of implyr on GitHub (67ba460).

Can you install the development version of implyr from GitHub to see if this solves the problem for you?
devtools::install_github("ianmcook/implyr")

I will include this fix in the next CRAN release of implyr.

from implyr.

ianmcook avatar ianmcook commented on June 5, 2024

This is fixed in implyr version 0.2.3 on CRAN.

from implyr.

Related Issues (20)

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.