Skip to content
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

[CALCITE-3163] AbstractCursor#convertValue() now adheres to JDBC specification #105

Closed

Conversation

ppanopticon
Copy link

Outlined in JIRA issue [CALCITE-3163]

@vlsi vlsi force-pushed the master branch 3 times, most recently from d90fb8c to 92045d0 Compare November 17, 2019 14:44
nouda added a commit to polypheny/Avatica that referenced this pull request Mar 30, 2020
Comment on lines -1321 to +1323
case Types.FLOAT:
case Types.REAL:
return componentAccessor.getFloat();
case Types.FLOAT:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks reasonable but I was thinking that it would be nice to have some tests to guard against future regressions. Maybe in ArrayTypeTest?

Copy link
Member

@asolimando asolimando Feb 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, unfortunately ArrayTypeTest being based on hsqldb, won't work as-is, because hsqldb maps Double, Real and Float to Java double (see here).

I tried and indeed a CREATE TABLE $table (id integer, vals REAL ARRAY) statement creates a table (INTEGER, DOUBLE ARRAY).

Either we find an "easy" way to use another DB in those tests, or we need to find another location, I will have a look during the weekend.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have managed to add unit tests, I have opened a complementing PR: #139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants