4paradigm / 4paradigm/OpenMLDB

Add restriction for values of execute_mode

Open
#947 2 comments 0 reactions 1 assignee Assigned to @vagetablechicken View on GitHub
enhancement
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
1

Description

Now users can set any string value to `execute_mode` which is invalid and should be prevented when setting.

![image](https://user-images.githubusercontent.com/2715000/147051516-d86999ed-d876-4b26-bf46-d705754b00e9.png)

Contributor guide

Open the contributing guide

Research direction

Look for the `execute_mode` configuration setting in the codebase, likely in a configuration validation or parsing module. The issue indicates invalid string values are currently accepted; the fix is to add validation to allow only specific valid values. Check existing tests for configuration handling to understand the expected behavior and add a test for the new restriction.

Written by the indexing model from the issue text.

Assessment

Tech stack
databases, machine-learning
Domain
backend, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.