Open exaSR opened 1 week ago
aside from the functionality issue I'm not sure pushing constants into select lists is a good idea, regarding performance / transfer amount
Which version of Exasol database is used? Which version of the Exasol Virtual Schemas is used?
Virtual Schema on Exaosl 7.1.29, remote Exasol 8.29.3 (or both very close). Adapter version -- no idea.
If you really need those for reproducing the Issue, I can find out.
https://github.com/exasol/oracle-virtual-schema/issues/26 mentions adapter property IMPORT_DATA_TYPES
, documented for VSCJDBC, which means
EXASOL_CALCULATED
and FROM_RESULT_SET
Since then, character set UTF-8
is the default and can no longer be configured.
Potentially, this causes an issue when pushing constants into select lists as shown above.
@ckunki - I'm a little surprised by the way, that the error message above does not include IMPORT INTO (...column names and types...)
... I thought that was the initial reason for the type mismatch?
Another afterthought -- depending on which datatype shows up on which component,
So maybe the fix should be on database side rather the virtual schema.
Minimal reproduction: select 'fixed_value' as col, name from %s where name = 'name'
Adapter generated invalid pushdown query for virtual table TAB: Data type mismatch in column number 1 (1-indexed). Expected CHAR(11) ASCII, but got VARCHAR(11) UTF8. (pushdown query: IMPORT FROM EXA AT "EXA_CONNECTION" STATEMENT 'SELECT ''fixed_value'', "TAB"."NAME" FROM "SOURCE_SCHEMA"."TAB" WHERE "TAB"."NAME" = ''name''')
Possibly related to https://github.com/exasol/oracle-virtual-schema/issues/26 ?
Virtual Schema for exasol fails on queries like this:
with error
(again customer is looking for a workaround instead of properly reporting the problem)