Skip to content

ResultSet.getObject throws "not implemented" exception for TIMESTAMP_WITH_TIMEZONE #839

@aiguofer

Description

@aiguofer

Describe the bug, including details regarding any error messages, version, and platform.

TIMESTAMP_WITH_TIMEZONE support was added in #464. However, I recently found that calling ResultSet.getObject(int columnIndex) throws the following exception:

java.lang.RuntimeException: not implemented

	at org.apache.calcite.avatica.AvaticaSite.notImplemented(AvaticaSite.java:422)
	at org.apache.calcite.avatica.AvaticaSite.get(AvaticaSite.java:381)
	at org.apache.calcite.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:395)

The issue is that AvaticaSite does not implement support for it. I will put up a PR to add support by overriding our ResultSet.getObject method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions