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
Describe the bug
When creating a JDBC SQL mapping without specifying the columns (like in below example), the column order is reversed compared to that in remote source table. This affects statements such as SELECT * FROM ... and INSERT INTO <mapping> VALUES.
CREATE MAPPING people
TYPE JDBC
OPTIONS (
'externalDataStoreRef'='mysql-database'
)
Expected behavior
A clear and concise description of what you expected to happen.
To Reproduce
Steps to reproduce the behavior:
Start a member with an external-data-store configured
Create a JDBC mapping referencing the data store. This should be done without provide any columns explicitly (like above).
Execute SELECT * FROM <jdbc-mapping> or INSERT INTO <jdbc-mapping> VALUES to observe the behavior
Additional context
A potential workaround is to specify the columns in the desired order when creating the mapping. For example:
CREATE MAPPING people (
id INT,
name VARCHAR
)
TYPE JDBC
OPTIONS (
'externalDataStoreRef'='mysql-database'
)
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Ordering of columns not preserved in JDBC mapping vs table in external store
Ordering of columns not preserved in JDBC mapping vs table in external store [HZ-1556]
Oct 5, 2022
Describe the bug
When creating a JDBC SQL mapping without specifying the columns (like in below example), the column order is reversed compared to that in remote source table. This affects statements such as
SELECT * FROM ...
andINSERT INTO <mapping> VALUES
.Expected behavior
A clear and concise description of what you expected to happen.
To Reproduce
Steps to reproduce the behavior:
external-data-store
configuredSELECT * FROM <jdbc-mapping>
orINSERT INTO <jdbc-mapping> VALUES
to observe the behaviorAdditional context
A potential workaround is to specify the columns in the desired order when creating the mapping. For example:
The text was updated successfully, but these errors were encountered: