xubo245 commented on a change in pull request #3224: [CARBONDATA-3379] thrift file-format support generate c++ code
URL:
https://github.com/apache/carbondata/pull/3224#discussion_r285552737
##########
File path: store/CSDK/test/README.md
##########
@@ -0,0 +1,25 @@
+# Example of generate c++ code for file-format using thrift compiler
+
+### File List
+* build_carbondata_test.sh - Generate c++ code and compile
+* carbondata_test.cpp - Parsing .carbonindex using generated c++ code
+
+### Dependencies
+* thrfit 0.9.3
+* gcc 5.4
+* pkg-config
+
+### Usage
+1. build the carbondata_test
+
+```shell
+ sh build_carbondata_test.sh
Review comment:
lots of errors:
```
1 error generated.
In file included from carbondata_test.cpp:25:
In file included from ./gen-cpp/carbondata_index_types.h:17:
/usr/local/Cellar/thrift/0.9.3/include/thrift/cxxfunctional.h:95:18: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
using ::std::bind;
~~~~~~~^~~~
find
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:994:1: note: 'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
1 error generated.
clang: error: no such file or directory: 'carbondata_constants.o'
clang: error: no such file or directory: 'carbondata_index_constants.o'
clang: error: no such file or directory: 'carbondata_index_merge_constants.o'
clang: error: no such file or directory: 'carbondata_index_merge_types.o'
clang: error: no such file or directory: 'carbondata_index_types.o'
clang: error: no such file or directory: 'carbondata_test.o'
clang: error: no such file or directory: 'carbondata_types.o'
clang: error: no such file or directory: 'dictionary_constants.o'
clang: error: no such file or directory: 'dictionary_metadata_constants.o'
clang: error: no such file or directory: 'dictionary_metadata_types.o'
clang: error: no such file or directory: 'dictionary_types.o'
clang: error: no such file or directory: 'schema_constants.o'
clang: error: no such file or directory: 'schema_types.o'
clang: error: no such file or directory: 'sort_index_constants.o'
clang: error: no such file or directory: 'sort_index_types.o'
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services