You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# SQL Server1> create table dbo.test (c1 int, c2 varbinary(max), c3 image);
2> go
# Presto
presto>insert intosqlserver.dbo.test values (1, X'65683F', X'65683F');
INSERT: 1 row
presto>insert intosqlserver.dbo.test values (1, null, null);
Query 20200812_140614_00007_yrg9g failed: Failed to insert data: Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.
io.prestosql.spi.PrestoException: Failed to insert data: Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.
at io.prestosql.plugin.jdbc.JdbcPageSink.finish(JdbcPageSink.java:168)
at io.prestosql.operator.TableWriterOperator.finish(TableWriterOperator.java:203)
at io.prestosql.operator.Driver.processInternal(Driver.java:397)
at io.prestosql.operator.Driver.lambda$processFor$8(Driver.java:283)
at io.prestosql.operator.Driver.tryWithLock(Driver.java:675)
at io.prestosql.operator.Driver.processFor(Driver.java:276)
at io.prestosql.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1076)
at io.prestosql.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:163)
at io.prestosql.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:484)
at io.prestosql.$gen.Presto_testversion____20200812_135122_1.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.sql.BatchUpdateException: Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:2065)
at io.prestosql.plugin.jdbc.JdbcPageSink.finish(JdbcPageSink.java:160)
... 12 more
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
The text was updated successfully, but these errors were encountered: