drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From par...@apache.org
Subject [01/13] drill git commit: DRILL-5698: Revert unnecessary changes to C++ client
Date Thu, 12 Oct 2017 18:28:13 GMT
Repository: drill
Updated Branches:
  refs/heads/master 6ad983833 -> 2444271e4


DRILL-5698: Revert unnecessary changes to C++ client


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/58b7be27
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/58b7be27
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/58b7be27

Branch: refs/heads/master
Commit: 58b7be2714d95bb21e90aa80fc1f24f079e88821
Parents: 6ad9838
Author: Parth Chandra <parthc@apache.org>
Authored: Mon Aug 28 10:08:15 2017 -0700
Committer: Parth Chandra <parthc@apache.org>
Committed: Wed Oct 11 19:26:12 2017 -0700

----------------------------------------------------------------------
 contrib/native/client/CMakeLists.txt            |  2 +-
 .../native/client/example/querySubmitter.cpp    |  5 +-
 .../client/src/include/drill/drillClient.hpp    | 70 ++++++++++----------
 3 files changed, 40 insertions(+), 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/58b7be27/contrib/native/client/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/contrib/native/client/CMakeLists.txt b/contrib/native/client/CMakeLists.txt
index 796e118..7b54b00 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)

http://git-wip-us.apache.org/repos/asf/drill/blob/58b7be27/contrib/native/client/example/querySubmitter.cpp
----------------------------------------------------------------------
diff --git a/contrib/native/client/example/querySubmitter.cpp b/contrib/native/client/example/querySubmitter.cpp
index 4fdfe17..47e55de 100644
--- a/contrib/native/client/example/querySubmitter.cpp
+++ b/contrib/native/client/example/querySubmitter.cpp
@@ -84,6 +84,7 @@ 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;
@@ -91,6 +92,7 @@ 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{
@@ -151,7 +153,7 @@ void print(const Drill::FieldMetadata* pFieldMetadata, void* buf, size_t
sz){
             sprintf((char*)printBuffer, "NIY");
             break;
     }
-    printf("%s ,", (char*)printBuffer);
+    printf("%s\t", (char*)printBuffer);
     return;
 }
 
@@ -395,6 +397,7 @@ 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) {

http://git-wip-us.apache.org/repos/asf/drill/blob/58b7be27/contrib/native/client/src/include/drill/drillClient.hpp
----------------------------------------------------------------------
diff --git a/contrib/native/client/src/include/drill/drillClient.hpp b/contrib/native/client/src/include/drill/drillClient.hpp
index 326dd3a..f09d7f5 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  _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, _DateTimeLiteralSupport __b);
+  template inline _DateTimeLiteralSupport& operator|=(_DateTimeLiteralSupport& __a,
_DateTimeLiteralSupport __b);
+  template inline _DateTimeLiteralSupport& operator^=(_DateTimeLiteralSupport& __a,
_DateTimeLiteralSupport __b);
 
-  template  _DateTimeLiteralSupport operator~(_DateTimeLiteralSupport __a);
+  template inline _DateTimeLiteralSupport operator~(_DateTimeLiteralSupport __a);
 
   /**
    * Date time literal support flags
@@ -396,15 +396,15 @@ namespace meta {
       _C_GROUPBY    = 1 << 1L
   };
 
-  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, _CollateSupport
__b);
+  template inline _CollateSupport& operator|=(_CollateSupport& __a, _CollateSupport
__b);
+  template inline _CollateSupport& operator^=(_CollateSupport& __a, _CollateSupport
__b);
 
-  template  _CollateSupport operator~(_CollateSupport __a);
+  template inline _CollateSupport operator~(_CollateSupport __a);
 
 
   /**
@@ -476,15 +476,15 @@ namespace meta {
       _OJ_ALL_COMPARISON_OPS    = 1 << 7L //!< _OJ_ALL_COMPARISON_OPS
   };
 
-  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, _OuterJoinSupport
__b);
+  template inline _OuterJoinSupport& operator|=(_OuterJoinSupport& __a, _OuterJoinSupport
__b);
+  template inline _OuterJoinSupport& operator^=(_OuterJoinSupport& __a, _OuterJoinSupport
__b);
 
-  template  _OuterJoinSupport operator~(_OuterJoinSupport __a);
+  template inline _OuterJoinSupport operator~(_OuterJoinSupport __a);
 
   /**
    * Outer join support flags
@@ -541,15 +541,15 @@ namespace meta {
       _SQ_IN_QUANTIFIED = 1 << 5L
   };
 
-  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, _SubQuerySupport
__b);
+  template inline _SubQuerySupport& operator|=(_SubQuerySupport& __a, _SubQuerySupport
__b);
+  template inline _SubQuerySupport& operator^=(_SubQuerySupport& __a, _SubQuerySupport
__b);
 
-  template  _SubQuerySupport operator~(_SubQuerySupport __a);
+  template inline _SubQuerySupport operator~(_SubQuerySupport __a);
 
   /**
    * SubQuery support flags
@@ -579,15 +579,15 @@ namespace meta {
       _U_UNION_ALL  = 1 << 2L //!< _U_UNION_ALL
   };
 
-  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, _UnionSupport
__b);
+  template inline _UnionSupport& operator|=(_UnionSupport& __a, _UnionSupport __b);
+  template inline _UnionSupport& operator^=(_UnionSupport& __a, _UnionSupport __b);
 
-  template  _UnionSupport operator~(_UnionSupport __a);
+  template inline _UnionSupport operator~(_UnionSupport __a);
 
   /**
    * Union support flags


Mime
View raw message