-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgresql CREATE TABLE AS fails with timestamp columns #7747
Comments
This is a duplicate of #6737, though it's better described so I'm closing the other one. |
I will try to investigate this. |
Hi, I am facing the same issue while trying to insert into postgresql from presto with timestamp type field. Is there any workaround for this issue? Thanks & Regards, |
any update ? Thanks |
This should be fixed in the latest release. Can you give it a try?
|
Hi David, The problem persist in 0.194 version. presto:public> select node_version from system.runtime.nodes;
|
I pulled current master, JdbcPageSink is missing timestamp in if/else block, so it can not possibly work. Is anybody looking into it? Here is the actual stack trace: [13] Query failed (#20180227_185325_03234_9xbkg): Unsupported column type: timestamp |
Hello, any news about this? I am using Presto 0.227 and PostgreSQL 10.6 and still getting the same issue reported by others here. Thanks! |
+1 Presto 0.231, 0.240, 0.243, basically all |
works for me presto:default> create table some_table (ts) as select current_timestamp; Query 20201106_035558_00024_nd6xn, FINISHED, 3 nodes presto:default> select * from some_table;
|
Probably because you explicitly define the (ts) column, or maybe
Assume that users has a timestamp column.
|
presto> describe some_table; presto> create table another_table as select * from some_table; Query 20201106_163325_00011_jmxz6, FINISHED, 3 nodes presto> describe another_table; |
hm, interesting. What version of presto and postgres are you using? |
presto 345 and postgres 9.5 |
Then you must be using PrestoSQL, not PrestoDB? |
When trying to use
CREATE TABLE postgres_catalog.schema.table_name AS SELECT timestamp_column from another_pg_catalog.schema.table
Presto throws an error.When I go into the target Postgres logs to see more detail the error seems to be that its trying to insert a bigint instead of a timestamp.
Not sure if I'm doing something wrong but I appear to have this issue when trying to
CREATE TABLE _ AS SELECT ..
with any timestamp column in the select.The text was updated successfully, but these errors were encountered: