Giter VIP home page Giter VIP logo

Comments (6)

jingchen2222 avatar jingchen2222 commented on July 21, 2024

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.

jingchen2222 avatar jingchen2222 commented on July 21, 2024

Not only EngineOptions, many SQLNodes and PhysicalOpNodes have this kind of getter and setter style

from openmldb.

FrankSzn avatar FrankSzn commented on July 21, 2024

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.

jingchen2222 avatar jingchen2222 commented on July 21, 2024

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:

  1. setup the env: install third-party and create symbol link. Check setup_thirdparty.sh.
  2. 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.

FrankSzn avatar FrankSzn commented on July 21, 2024

Thanks for your clear guide!

from openmldb.

aceforeverd avatar aceforeverd commented on July 21, 2024

similar issues https://github.com/4paradigm/OpenMLDB/pull/609/files#r740130601

from openmldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.