Comments (6)
https://google.github.io/styleguide/cppguide.html#Function_Names
Accessors and mutators (get and set functions) may be named like variables. These often correspond to actual member variables, but this is not required. For example, int count() and void set_count(int count).
from openmldb.
Not only EngineOptions
, many SQLNode
s and PhysicalOpNode
s have this kind of getter and setter style
from openmldb.
Is there any doc about the local test related to EngineOptions, SQLNode, PhysicalNode to verify it work correctly after change the style to google cpp style ? Like, for example, toydb_engine_test.cc, it is a test which used EngineOptions, I want to check whether it work correctly, but I'm not clear how to test it locally . Or is there a test framework to verify the commit code? Thanks for your reply!
from openmldb.
Is there any doc about the local test related to EngineOptions, SQLNode, PhysicalNode to verify it work correctly after change the style to google cpp style ? Like, for example, toydb_engine_test.cc, it is a test which used EngineOptions, I want to check whether it work correctly, but I'm not clear how to test it locally . Or is there a test framework to verify the commit code? Thanks for your reply!
Thanks @FrankSzn . You can compile and test plan and engine locally by the following steps:
- setup the env: install third-party and create symbol link. Check setup_thirdparty.sh.
- compile & test (check hybridse_core_test).
> cd YOUR_PROJECT_ROOT/OpenMLDB/hybridse/
> mkdir build && cd build
> cmake ..
> make
> SQL_CASE_BASE_DIR=YOUR_PROJECT_ROOT/OpenMLDB make test
If you just want to run spefic test file (e.g., toydb_engine_test), find the path of the test and run it.
> cd YOUR_PROJECT_ROOT/OpenMLDB/
> cd hybridse/build
> SQL_CASE_BASE_DIR=YOUR_PROJECT_ROOT/OpenMLDB ./example/toydb/src/testing/toydb_engine_test
Hope this answer can help. :)
from openmldb.
Thanks for your clear guide!
from openmldb.
similar issues https://github.com/4paradigm/OpenMLDB/pull/609/files#r740130601
from openmldb.
Related Issues (20)
- ddl parser should return null if sql compile failed
- selfhost test fails on mvn compile
- No need to build with java for python cicd process HOT 2
- cicd of publish mac python package is broken
- api server: query with null input
- udf doc gen fails due to docs layout refactor
- ci: macos fails on macos-14
- When specifying the request mode in the "select * config" statement, the external execute_mode was not blocked.
- When rendering Markdown into online document, double dashes (--) will be processed into a single dash (-).
- map data type limitations HOT 1
- add support for `set @@execute_mode='request';` statement
- CICD of openmldb-test-python is broken
- The gcformat data format obtained from the feature extraction script using OpenMLDB SQL 0.9.0 is incorrect.
- The continuous feature values in the gcformat sample data generated by the OpenMLDB SQL feature extraction script are incorrect
- The discrete feature values in the gcformat sample data generated by the OpenMLDB SQL feature extraction script are inconsistent with those calculated by the PICO script HOT 1
- optimizer & runner should consider `NULL` special rules HOT 2
- hadoop.conf.dir env bug
- Demo in docker will fail when upgrading to 0.9.0, update python script with sqlalchemy 2
- segment gc when ts_cnt > 1
- Get incorrect result from rewrite sql when deploying with openmldb docker image but not for onebox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmldb.