aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDarren Brien <darrenbrien@aol.com>2017-07-31 11:52:41 +0100
committerJinfeng Ni <jni@apache.org>2017-08-14 22:19:24 -0700
commit109b2c09433789babb1704e30429450806dd5b37 (patch)
tree5878b23d7dc98678817a8092b79006d9805b29d8 /contrib
parent1cec10b957b13c1006bb644a44a833d81da5a187 (diff)
Drill-5698 Escape version number period separator, this captures version numbers with 4 5 or 6 in them, like 1.8.0_144
release build build example remove print statements close #890
Diffstat (limited to 'contrib')
-rw-r--r--contrib/native/client/CMakeLists.txt2
-rw-r--r--contrib/native/client/example/querySubmitter.cpp5
-rw-r--r--contrib/native/client/src/include/drill/drillClient.hpp70
3 files changed, 37 insertions, 40 deletions
diff --git a/contrib/native/client/CMakeLists.txt b/contrib/native/client/CMakeLists.txt
index 7b54b00fd..796e1184c 100644
--- a/contrib/native/client/CMakeLists.txt
+++ b/contrib/native/client/CMakeLists.txt
@@ -93,7 +93,7 @@ else()
# of boost. Arbirtarily, we choose the new namspace to be drill_boost.
# See the instructions in the readme for linux/macos and rebuild boost. Then
# uncomment the line below to build
- # set(Boost_NAMESPACE drill_boost)
+ set(Boost_NAMESPACE drill_boost)
endif()
find_package(Boost 1.53.0 REQUIRED COMPONENTS regex system date_time chrono thread random)
diff --git a/contrib/native/client/example/querySubmitter.cpp b/contrib/native/client/example/querySubmitter.cpp
index 47e55de2d..4fdfe17e8 100644
--- a/contrib/native/client/example/querySubmitter.cpp
+++ b/contrib/native/client/example/querySubmitter.cpp
@@ -84,7 +84,6 @@ Drill::status_t QueryResultsListener(void* ctx, Drill::RecordBatch* b, Drill::Dr
if(!err){
if(b!=NULL){
b->print(std::cout, 0); // print all rows
- std::cout << "DATA RECEIVED ..." << std::endl;
delete b; // we're done with this batch, we can delete it
if(bTestCancel){
return Drill::QRY_FAILURE;
@@ -92,7 +91,6 @@ Drill::status_t QueryResultsListener(void* ctx, Drill::RecordBatch* b, Drill::Dr
return Drill::QRY_SUCCESS ;
}
}else{
- std::cout << "Query Complete." << std::endl;
return Drill::QRY_SUCCESS;
}
}else{
@@ -153,7 +151,7 @@ void print(const Drill::FieldMetadata* pFieldMetadata, void* buf, size_t sz){
sprintf((char*)printBuffer, "NIY");
break;
}
- printf("%s\t", (char*)printBuffer);
+ printf("%s ,", (char*)printBuffer);
return;
}
@@ -397,7 +395,6 @@ int main(int argc, char* argv[]) {
std::cerr<< "Failed to connect with error: "<< client.getError() << " (Using:"<<connectStr<<")"<<std::endl;
return -1;
}
- std::cout<< "Connected!\n" << std::endl;
if(api=="meta") {
Drill::Metadata* metadata = client.getMetadata();
if (metadata) {
diff --git a/contrib/native/client/src/include/drill/drillClient.hpp b/contrib/native/client/src/include/drill/drillClient.hpp
index f09d7f5ec..326dd3a5d 100644
--- a/contrib/native/client/src/include/drill/drillClient.hpp
+++ b/contrib/native/client/src/include/drill/drillClient.hpp
@@ -338,15 +338,15 @@ namespace meta {
_DL_INTERVAL_MINUTE_TO_SECOND = 1 << 16L
};
- template inline _DateTimeLiteralSupport operator&(_DateTimeLiteralSupport __a, _DateTimeLiteralSupport __b);
- template inline _DateTimeLiteralSupport operator|(_DateTimeLiteralSupport __a, _DateTimeLiteralSupport __b);
- template inline _DateTimeLiteralSupport operator^(_DateTimeLiteralSupport __a, _DateTimeLiteralSupport __b);
+ template _DateTimeLiteralSupport operator&(_DateTimeLiteralSupport __a, _DateTimeLiteralSupport __b);
+ template _DateTimeLiteralSupport operator|(_DateTimeLiteralSupport __a, _DateTimeLiteralSupport __b);
+ template _DateTimeLiteralSupport operator^(_DateTimeLiteralSupport __a, _DateTimeLiteralSupport __b);
- template inline _DateTimeLiteralSupport& operator&=(_DateTimeLiteralSupport& __a, _DateTimeLiteralSupport __b);
- template inline _DateTimeLiteralSupport& operator|=(_DateTimeLiteralSupport& __a, _DateTimeLiteralSupport __b);
- template inline _DateTimeLiteralSupport& operator^=(_DateTimeLiteralSupport& __a, _DateTimeLiteralSupport __b);
+ template _DateTimeLiteralSupport& operator&=(_DateTimeLiteralSupport& __a, _DateTimeLiteralSupport __b);
+ template _DateTimeLiteralSupport& operator|=(_DateTimeLiteralSupport& __a, _DateTimeLiteralSupport __b);
+ template _DateTimeLiteralSupport& operator^=(_DateTimeLiteralSupport& __a, _DateTimeLiteralSupport __b);
- template inline _DateTimeLiteralSupport operator~(_DateTimeLiteralSupport __a);
+ template _DateTimeLiteralSupport operator~(_DateTimeLiteralSupport __a);
/**
* Date time literal support flags
@@ -396,15 +396,15 @@ namespace meta {
_C_GROUPBY = 1 << 1L
};
- template inline _CollateSupport operator&(_CollateSupport __a, _CollateSupport __b);
- template inline _CollateSupport operator|(_CollateSupport __a, _CollateSupport __b);
- template inline _CollateSupport operator^(_CollateSupport __a, _CollateSupport __b);
+ template _CollateSupport operator&(_CollateSupport __a, _CollateSupport __b);
+ template _CollateSupport operator|(_CollateSupport __a, _CollateSupport __b);
+ template _CollateSupport operator^(_CollateSupport __a, _CollateSupport __b);
- template inline _CollateSupport& operator&=(_CollateSupport& __a, _CollateSupport __b);
- template inline _CollateSupport& operator|=(_CollateSupport& __a, _CollateSupport __b);
- template inline _CollateSupport& operator^=(_CollateSupport& __a, _CollateSupport __b);
+ template _CollateSupport& operator&=(_CollateSupport& __a, _CollateSupport __b);
+ template _CollateSupport& operator|=(_CollateSupport& __a, _CollateSupport __b);
+ template _CollateSupport& operator^=(_CollateSupport& __a, _CollateSupport __b);
- template inline _CollateSupport operator~(_CollateSupport __a);
+ template _CollateSupport operator~(_CollateSupport __a);
/**
@@ -476,15 +476,15 @@ namespace meta {
_OJ_ALL_COMPARISON_OPS = 1 << 7L //!< _OJ_ALL_COMPARISON_OPS
};
- template inline _OuterJoinSupport operator&(_OuterJoinSupport __a, _OuterJoinSupport __b);
- template inline _OuterJoinSupport operator|(_OuterJoinSupport __a, _OuterJoinSupport __b);
- template inline _OuterJoinSupport operator^(_OuterJoinSupport __a, _OuterJoinSupport __b);
+ template _OuterJoinSupport operator&(_OuterJoinSupport __a, _OuterJoinSupport __b);
+ template _OuterJoinSupport operator|(_OuterJoinSupport __a, _OuterJoinSupport __b);
+ template _OuterJoinSupport operator^(_OuterJoinSupport __a, _OuterJoinSupport __b);
- template inline _OuterJoinSupport& operator&=(_OuterJoinSupport& __a, _OuterJoinSupport __b);
- template inline _OuterJoinSupport& operator|=(_OuterJoinSupport& __a, _OuterJoinSupport __b);
- template inline _OuterJoinSupport& operator^=(_OuterJoinSupport& __a, _OuterJoinSupport __b);
+ template _OuterJoinSupport& operator&=(_OuterJoinSupport& __a, _OuterJoinSupport __b);
+ template _OuterJoinSupport& operator|=(_OuterJoinSupport& __a, _OuterJoinSupport __b);
+ template _OuterJoinSupport& operator^=(_OuterJoinSupport& __a, _OuterJoinSupport __b);
- template inline _OuterJoinSupport operator~(_OuterJoinSupport __a);
+ template _OuterJoinSupport operator~(_OuterJoinSupport __a);
/**
* Outer join support flags
@@ -541,15 +541,15 @@ namespace meta {
_SQ_IN_QUANTIFIED = 1 << 5L
};
- template inline _SubQuerySupport operator&(_SubQuerySupport __a, _SubQuerySupport __b);
- template inline _SubQuerySupport operator|(_SubQuerySupport __a, _SubQuerySupport __b);
- template inline _SubQuerySupport operator^(_SubQuerySupport __a, _SubQuerySupport __b);
+ template _SubQuerySupport operator&(_SubQuerySupport __a, _SubQuerySupport __b);
+ template _SubQuerySupport operator|(_SubQuerySupport __a, _SubQuerySupport __b);
+ template _SubQuerySupport operator^(_SubQuerySupport __a, _SubQuerySupport __b);
- template inline _SubQuerySupport& operator&=(_SubQuerySupport& __a, _SubQuerySupport __b);
- template inline _SubQuerySupport& operator|=(_SubQuerySupport& __a, _SubQuerySupport __b);
- template inline _SubQuerySupport& operator^=(_SubQuerySupport& __a, _SubQuerySupport __b);
+ template _SubQuerySupport& operator&=(_SubQuerySupport& __a, _SubQuerySupport __b);
+ template _SubQuerySupport& operator|=(_SubQuerySupport& __a, _SubQuerySupport __b);
+ template _SubQuerySupport& operator^=(_SubQuerySupport& __a, _SubQuerySupport __b);
- template inline _SubQuerySupport operator~(_SubQuerySupport __a);
+ template _SubQuerySupport operator~(_SubQuerySupport __a);
/**
* SubQuery support flags
@@ -579,15 +579,15 @@ namespace meta {
_U_UNION_ALL = 1 << 2L //!< _U_UNION_ALL
};
- template inline _UnionSupport operator&(_UnionSupport __a, _UnionSupport __b);
- template inline _UnionSupport operator|(_UnionSupport __a, _UnionSupport __b);
- template inline _UnionSupport operator^(_UnionSupport __a, _UnionSupport __b);
+ template _UnionSupport operator&(_UnionSupport __a, _UnionSupport __b);
+ template _UnionSupport operator|(_UnionSupport __a, _UnionSupport __b);
+ template _UnionSupport operator^(_UnionSupport __a, _UnionSupport __b);
- template inline _UnionSupport& operator&=(_UnionSupport& __a, _UnionSupport __b);
- template inline _UnionSupport& operator|=(_UnionSupport& __a, _UnionSupport __b);
- template inline _UnionSupport& operator^=(_UnionSupport& __a, _UnionSupport __b);
+ template _UnionSupport& operator&=(_UnionSupport& __a, _UnionSupport __b);
+ template _UnionSupport& operator|=(_UnionSupport& __a, _UnionSupport __b);
+ template _UnionSupport& operator^=(_UnionSupport& __a, _UnionSupport __b);
- template inline _UnionSupport operator~(_UnionSupport __a);
+ template _UnionSupport operator~(_UnionSupport __a);
/**
* Union support flags