I am trying to query SQL Server from Apache Drill but I get some issues when the SQL Server tables contain datetimeoffset
(SQL Server type) columns.
Any SELECT query from Drill to SQL Server on this kind of table lead to the response:
Error:
VALIDATION ERROR: Unknown SQL type -155
I am certain it comes from the datetimeoffset column in the table, since I tested the same kind of queries on tables with no datetimeoffset columns and obtained satisfying results.
I went through the documentation of Drill (e.g. this page https://drill.apache.org/docs/supported-data-types/) and tried to cast the datetimeoffset
column to SQL supported types but nothing worked and Apache Drill kept answering me the same error.
Do you have any idea how to get through this please?