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

NullPointerException for setProperties request #272

Closed
exanm opened this issue Oct 2, 2019 · 1 comment
Closed

NullPointerException for setProperties request #272

exanm opened this issue Oct 2, 2019 · 1 comment
Assignees
Labels
bug Unwanted / harmful behavior

Comments

@exanm
Copy link
Contributor

exanm commented Oct 2, 2019

In version 2.1.1 a NullPointerException happens for the setProperties request of the ALTER VIRTUAL SCHEMA statement:

java.lang.NullPointerException
Stack trace:
com.exasol.adapter.jdbc.JdbcAdapter.getTableFilter(JdbcAdapter.java:157)
com.exasol.adapter.jdbc.JdbcAdapter.setProperties(JdbcAdapter.java:127)
com.exasol.adapter.RequestDispatcher.dispatchSetPropertiesRequestToAdapter(RequestDispatcher.java:134)
com.exasol.adapter.RequestDispatcher.processRequest(RequestDispatcher.java:75)
...

How to reproduce:

CREATE VIRTUAL SCHEMA VS1 USING ADAPTER.JDBC_ADAPTER WITH
    CONNECTION_STRING='jdbc:exa:REMOVED'
    SCHEMA_NAME='NATIVE'
    IS_LOCAL='True'
    SQL_DIALECT='EXASOL';

DROP TABLE NATIVE.T_DATETIME;
ALTER TABLE NATIVE.T ADD COLUMN D INT;
CREATE TABLE NATIVE.T_NEW(A INT);
RENAME SCHEMA NATIVE TO NATIVE_RENAMED;

ALTER VIRTUAL SCHEMA VS1 SET
    SCHEMA_NAME='NATIVE_RENAMED'
    CONNECTION_STRING='jdbc:exa:REMOVED;schema=NATIVE_RENAMED';
@AnastasiiaSergienko AnastasiiaSergienko added the bug Unwanted / harmful behavior label Oct 9, 2019
@AnastasiiaSergienko AnastasiiaSergienko self-assigned this Oct 11, 2019
@AnastasiiaSergienko
Copy link
Contributor

Tested with different versions. The behavior was broken in version 1.16.3:
https://github.com/exasol/virtual-schemas/releases/tag/1.16.3

I'm going to investigate the case.

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

No branches or pull requests

2 participants