Comments (15)
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.
from rpostgres.
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
);
from rpostgres.
Is this a problem? R doesn't have any default data types to handle uuids... I am guessing it gets converted to character().
from rpostgres.
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.
from rpostgres.
The idea would be to throw warnings only for truly unrecognized types.
from rpostgres.
+1
from rpostgres.
+1
from rpostgres.
+1
from rpostgres.
+1
from rpostgres.
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.
from rpostgres.
Done. For now there's devtools::install_github("rstats-db/RPostgres#55")
from rpostgres.
This issue was closed a long time ago, yet somehow I am still seeing this error.
con <- DBI::dbConnect(RPostgreSQL::PostgreSQL(),
dbname = "postgres",
port = 5432,
host = "127.0.0.1",
user = "postgres",
password = password
)
DBI::dbSendStatement(con,"CREATE TABLE test (id UUID DEFAULT uuid_generate_v4 ());")
DBI::dbGetQuery(con,"SELECT * FROM test")
Yields:
data frame with 0 columns and 0 rows
Warning message:
In postgresqlExecStatement(conn, statement, ...) :
RS-DBI driver warning: (unrecognized PostgreSQL field type uuid (id:2950) in column 0)
Any idea why it might be showing up? Thank you!
(also I'm happy to make a new issue out of this or whatever is most convenient, rather than commenting on a super old issue).
from rpostgres.
The code refers to the {RPostgreSQL} package, this repo hosts the {RPostgres} package. Do you still see the error when using {RPostgres}?
from rpostgres.
Nope no issue. Sorry I didn't realize they were two separate packages!
from rpostgres.
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.
from rpostgres.
Related Issues (20)
- Printing of "invalid" `PqConnection` object HOT 1
- Connection to AWS DB with RPostgres on M1 Mac HOT 18
- binding parameters fails with input from dbQuoteLiteral HOT 2
- Connection closed unexpectedly by server HOT 9
- Encoding issue with identifiers passed via dbWriteTable or copy_to? HOT 3
- Cannot use DBI::dbWriteTable to save temporary table to Redshift HOT 2
- Failure to acquire connections on Mac OS within multicore fork()-ed process HOT 2
- Redshift varchar character length not respected by dplyr::rows_*() HOT 5
- collation warning on Ubuntu 22.04 HOT 4
- relicense RPostgres as MIT HOT 2
- using databases.pacha.dev for testing HOT 4
- Curious bug with transaction and `dbSendQuery()` HOT 6
- Redshift: dbWriteTable() with larger DFs and CSVs HOT 3
- Unable to create table with logical column HOT 4
- Schema with DBI::Id appears not to work with `dbListTables` HOT 4
- Bigints in dbQuoteLiteral HOT 3
- Polygon/multipolygon columns: incorrect write, correct read HOT 7
- Something wrong with the 1.4.5 Mac binary on CRAN with Redshift HOT 32
- How to deal with `pq__varchar` columns HOT 11
- vendoring cpp11 headers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpostgres.