TIBCOSoftware / snappy-store

SnappyStore
Apache License 2.0
39 stars 18 forks source link

[SDENT 170] - return JDBC metadata in lower case #550

Closed vatsalmevada closed 4 years ago

vatsalmevada commented 4 years ago

Changes proposed in this pull request

Currently metadata derived from JDBC API is provided in upper case. Which is inconsistent with other means of getting metadata e.g. show tables.

With this PR we have added a new metadata_lc.property file which will return metadata information in lower case.

This file will be used only when metadatacase.lower system property is set and when query routing is enabled (i.e. only for external connections) . For internal connection we will keep using existing metadata.propery file in order to avoid changes in internal code which could be written with consideration of upper case.

Following is the list of queries and respective fields which will be returned in lower case:

Following VARCHAR fields from above queries are not converted in lower case:

Patch testing

Is precheckin with -Pstore clean?

yes after fixing the failures

Other PRs

https://github.com/SnappyDataInc/snappy-connectors/pull/40 https://github.com/SnappyDataInc/snappydata/pull/1538