Skip to content
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

Insertions into postgres table with timestamp fail #6737

Closed
jimexist opened this issue Dec 1, 2016 · 2 comments
Closed

Insertions into postgres table with timestamp fail #6737

jimexist opened this issue Dec 1, 2016 · 2 comments

Comments

@jimexist
Copy link
Contributor

jimexist commented Dec 1, 2016

Caused by: java.sql.SQLException: Query failed (#20161201_103957_00022_n38hp): Batch entry 0 INSERT INTO "circle_test"."public"."tmp_presto_10e94267352a4161ae25844b67c6d505" VALUES ('Cup',12.2,1280424020000) was aborted.  Call getNextException to see the cause.

This happens when directly insert data via Presto into a postgres table with a timestamp column. It seems that the 1280424020000 value wasn't properly cast to timestamp type.

@jimexist
Copy link
Contributor Author

jimexist commented Dec 1, 2016

This was the log from presto side:

2016-12-01T10:39:58.100Z	ERROR	SplitRunner-0-52	com.facebook.presto.execution.TaskExecutor	Error processing Split 20161201_103957_00022_n38hp.1.0-0  (start = 1480588797917, wall = 167 ms, cpu = 11 ms, calls = 4): JDBC_ERROR: Batch entry 0 INSERT INTO "circle_test"."public"."tmp_presto_10e94267352a4161ae25844b67c6d505" VALUES ('Cup',12.2,1280424020000) was aborted.  Call getNextException to see the cause.

@maciejgrzybek
Copy link
Member

This is duplicated by #7747. I'm closing this in favor of the other one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants