Skip to content

unrecognized PostgreSQL field type uuid (id:2950) #30

Closed

Description

@koseri

Connecting to a table with field type uuid generates a warning.

Table creation

CREATE TABLE prd_tv_sandbox.r_gender
(
respid UUID,
wave_id UUID,
gender INTEGER,
PRIMARY KEY (respid,wave_id)
);

# The R:

library (RPostgres)
library ( dplyr)
library ( DBI )


con_sb <- src_postgres(dbname = "the_db",   user = "[id]", password = "***")

gen_db <-  tbl ( con_sb, "r_gender" )

Warning messages:
1: In postgresqlExecStatement(conn, statement, ...) :
RS-DBI driver warning: (unrecognized PostgreSQL field type uuid (id:2950) in column 0)
2: In postgresqlExecStatement(conn, statement, ...) :
RS-DBI driver warning: (unrecognized PostgreSQL field type uuid (id:2950) in column 1)

Activity

  1. koseri commented on Apr 21, 2015

    @koseri
    Author

    BTW, if you don't have any UUIDs handy, Postgres will be glad to make them for you.

    CREATE TABLE fuutab
    (
    fuu UUID DEFAULT uuid_generate_v4(),
    name VARCHAR(255) NOT NULL
    );
  2. alexfun commented on Apr 28, 2015

    @alexfun

    Is this a problem? R doesn't have any default data types to handle uuids... I am guessing it gets converted to character().

  3. koseri commented on Apr 28, 2015

    @koseri
    Author

    It is indeed character data in R. However, as soon as you connect to or use a table with Postgres field type UUID, the driver starts throwing warnings. Incessant warnings over nothing are undesirable.

  4. alexfun commented on Apr 29, 2015

    @alexfun

    But for other cases the warning is helpful. E.g. if you have the citext (case insensitive text) plug-in installed, then you have to be careful writing and downloading data from case insensitive columns.

  5. koseri commented on Apr 29, 2015

    @koseri
    Author

    The idea would be to throw warnings only for truly unrecognized types.

  6. Andrei-Pozolotin commented on Jul 9, 2015

    @Andrei-Pozolotin

    +1

  7. abhoffman commented on Aug 10, 2015

    @abhoffman

    +1

  8. thoughtfuldata commented on Aug 10, 2015

    @thoughtfuldata

    +1

  9. added 2 commits that reference this issue on Oct 14, 2015
    a6e9373
    2d2dec4
  10. added this to the 1.0 milestone on Nov 11, 2015
  11. EmteZogaf commented on Jan 26, 2016

    @EmteZogaf

    +1

  12. JackStat commented on Jan 27, 2016

    @JackStat
    Contributor

    Can someone review the pull request #55 and merge or make recommendations for modifications? I just want the changes to be fresh if there is a discussion to be had and it seems like people would like to see a fix added.

  13. krlmlr commented on Jan 27, 2016

    @krlmlr
    Member

    Done. For now there's devtools::install_github("rstats-db/RPostgres#55")

  14. added a commit that references this issue on Feb 2, 2016
  15. jnolis commented on Mar 26, 2019

    @jnolis
  16. krlmlr commented on Mar 26, 2019

    @krlmlr
  17. jnolis commented on Mar 29, 2019

    @jnolis
  18. github-actions commented on Dec 7, 2020

    @github-actions
    Contributor

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

  19. locked and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions