-
Notifications
You must be signed in to change notification settings - Fork 2
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
Correctly map INTERVAL and GEOMETRY types #71
Comments
@kaklakariada, is this only about the result set information? If that is the case, the upcoming VS interface will include the expected types, so that we can solve this. |
updated PK and dependencies to vsc-jdbc fixed test setup enabled fingerprint for major version > 7 removed obsolete test after fixing vsc-jdbc/#119
Empiric results with Exasol database version 7.1.11Using test
IMPORT FROM EXA AT "EXA_CONNECTION" STATEMENT
'SELECT "SINGLE_COLUMN_TABLE_GEOMETRY4321"."C1"
FROM "SOURCE_SCHEMA"."SINGLE_COLUMN_TABLE_GEOMETRY4321"'
IMPORT INTO (c1 VARCHAR(40) UTF8) FROM JDBC AT JDBC_CONNECTION STATEMENT
'SELECT TYPEOF("SINGLE_COLUMN_TABLE_GEOMETRY4321"."C1")
FROM "SOURCE_SCHEMA"."SINGLE_COLUMN_TABLE_GEOMETRY4321"'; As JDBC does not support data type The following import statement would also be correct: IMPORT FROM JDBC AT JDBC_CONNECTION STATEMENT
'SELECT TYPEOF("SINGLE_COLUMN_TABLE_GEOMETRY4321"."C1")
FROM "SOURCE_SCHEMA"."SINGLE_COLUMN_TABLE_GEOMETRY4321"'; |
testSelectStarConvertedToColumnsListJoinSameTable
testSelectStarConvertedToColumnsListJoinSameTableReversed
|
Actual table CREATE TABLE "TL" ("L1", "VARCHAR(5)", "L2", "VARCHAR(5)"); Select * statement on a join of table "TL" with itself expected to return 4 columns in total: SELECT * FROM TL JOIN TL AS TL_2 ON TL.L1 = TL_2.L1 ORDER BY TL.L1 Generated pushdown query: IMPORT INTO (c1 VARCHAR(5) UTF8, c2 VARCHAR(5) UTF8)
FROM JDBC AT JDBC_CONNECTION STATEMENT
'SELECT "TL"."L1", "TL"."L2", "TL_2"."L1", "TL_2"."L2"
FROM "SOURCE_SCHEMA"."TL"
INNER JOIN "SOURCE_SCHEMA"."TL" "TL_2"
ON "TL"."L1" = "TL_2"."L1" ORDER BY "TL"."L1"
') JSON in pushdown request contains only two columns "selectListDataTypes" : [ {
"size" : 5,
"type" : "VARCHAR"
},
{
"size" : 5,
"type" : "VARCHAR"
} ],
"type" : "select" |
* #71: Correctly map INTERVAL and GEOMETRY types Co-authored-by: Christoph Pirkl <[email protected]>
This is related to issues #60, #66 and #69.
In #69 we already fixed the mapping of
HASHTYPE
columns so that they are reported with their real type and length. This is however not possible withINTERVAL
andGEOMETRY
types as they require changes to the JDBC driver that allow reconstructing the original type from a JDBCResultSet
. Once the internal ticket 13982 is implemented, we can start working on this.The text was updated successfully, but these errors were encountered: