exasol / virtual-schemas

Entry point repository for the EXASOL Virtual Schemas
http://www.exasol.com
MIT License
24 stars 23 forks source link

NullPointerException if SCHEMA_NAME property is missing #282

Closed AnastasiiaSergienko closed 4 years ago

AnastasiiaSergienko commented 5 years ago

Problem

When we create Virtual Schema without setting SCHEMA_NAME property, it's created successfully. But when we use SELECT, NullPointerException will be thrown, because SCHEMA_NAME is required to query the schema in the source.

How to reproduce:

CREATE VIRTUAL SCHEMA virtual_schema_sqlserver USING schema_sqlserver.adapter_script_sqlserver WITH SQL_DIALECT = 'SQLSERVER' CONNECTION_NAME = 'jdbc_connection_sqlserver' CATALOG_NAME = 'master'';

SELECT * FROM virtual_schema_sqlserver."visits";

AnastasiiaSergienko commented 4 years ago

I was not able to reproduce the issue with SQL Server dialect. Probably, it was fixed at some point. I'll close this ticket.