aboutsummaryrefslogtreecommitdiff
path: root/contrib/native/client/src/include
diff options
context:
space:
mode:
authorLaurent Goujon <laurent@dremio.com>2017-02-26 10:23:59 -0800
committerJinfeng Ni <jni@apache.org>2017-03-01 23:15:32 -0800
commitd3238b1b2270533285025d69b35906506212f492 (patch)
tree7ad33e0aab7af0fd03490a3ed031355f80cc840a /contrib/native/client/src/include
parentd2e0f415c9cbaf609805708586832b6771883f53 (diff)
DRILL-5301: Add C++ client support for Server metadata API
Add support to the Server metadata API to the C++ client if available. If the API is not supported to the server, fallback to the previous hard-coded values. Update the querySubmitter example program to query the information. close #764
Diffstat (limited to 'contrib/native/client/src/include')
-rw-r--r--contrib/native/client/src/include/drill/drillClient.hpp43
1 files changed, 23 insertions, 20 deletions
diff --git a/contrib/native/client/src/include/drill/drillClient.hpp b/contrib/native/client/src/include/drill/drillClient.hpp
index 01c9f676f..1eb97cd80 100644
--- a/contrib/native/client/src/include/drill/drillClient.hpp
+++ b/contrib/native/client/src/include/drill/drillClient.hpp
@@ -439,24 +439,26 @@ namespace meta {
* Identified case support
*/
enum IdentifierCase {
- IC_STORES_LOWER, /**< Mixed case unquoted SQL identifier are treated as
- case insensitive and stored in lower case */
- IC_STORES_MIXED, /**< Mixed case unquoted SQL identifier are treated as
- case insensitive and stored in mixed case */
- IC_STORES_UPPER, /**< Mixed case unquoted SQL identifier are treated as
- case insensitive and stored in upper case */
- IC_SUPPORTS_MIXED /**< Mixed case unquoted SQL identifier are treated as
- case sensitive and stored in mixed case */
+ IC_UNKNOWN = -1, /**< Unknown support */
+ IC_STORES_LOWER = 0, /**< Mixed case unquoted SQL identifier are treated as
+ case insensitive and stored in lower case */
+ IC_STORES_MIXED = 1, /**< Mixed case unquoted SQL identifier are treated as
+ case insensitive and stored in mixed case */
+ IC_STORES_UPPER = 2, /**< Mixed case unquoted SQL identifier are treated as
+ case insensitive and stored in upper case */
+ IC_SUPPORTS_MIXED =3 /**< Mixed case unquoted SQL identifier are treated as
+ case sensitive and stored in mixed case */
};
/**
* Null collation support
*/
enum NullCollation {
- NC_AT_START,/**< NULL values are sorted at the start regardless of the order*/
- NC_AT_END, /**< NULL values are sorted at the end regardless of the order*/
- NC_HIGH, /**< NULL is the highest value */
- NC_LOW /**< NULL is the lowest value */
+ NC_UNKNOWN = -1, /**< Unknown support */
+ NC_AT_START = 0, /**< NULL values are sorted at the start regardless of the order*/
+ NC_AT_END = 1, /**< NULL values are sorted at the end regardless of the order*/
+ NC_HIGH = 2, /**< NULL is the highest value */
+ NC_LOW = 3 /**< NULL is the lowest value */
};
@@ -516,14 +518,15 @@ namespace meta {
* Quoted Identified case support
*/
enum QuotedIdentifierCase {
- QIC_STORES_LOWER, /**< Mixed case quoted SQL identifier are treated as
- case insensitive and stored in lower case */
- QIC_STORES_MIXED, /**< Mixed case quoted SQL identifier are treated as
- case insensitive and stored in mixed case */
- QIC_STORES_UPPER, /**< Mixed case quoted SQL identifier are treated as
- case insensitive and stored in upper case */
- QIC_SUPPORTS_MIXED /**< Mixed case quoted SQL identifier are treated as
- case sensitive and stored in mixed case */
+ QIC_UNKNOWN = -1, /**< Unknown support */
+ QIC_STORES_LOWER = 0, /**< Mixed case quoted SQL identifier are treated as
+ case insensitive and stored in lower case */
+ QIC_STORES_MIXED = 1, /**< Mixed case quoted SQL identifier are treated as
+ case insensitive and stored in mixed case */
+ QIC_STORES_UPPER = 2, /**< Mixed case quoted SQL identifier are treated as
+ case insensitive and stored in upper case */
+ QIC_SUPPORTS_MIXED =3 /**< Mixed case quoted SQL identifier are treated as
+ case sensitive and stored in mixed case */
};
/*