4paradigm / 4paradigm/OpenMLDB
Deploy without table success but use it fail
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 331
- Avg merge
- 12d 12h
- Merged PRs (30d)
- 1
Description
**Bug Description**
When deploy a new deployment without table, the operation succeeds.
However, the deployment can't be called.
**Steps to Reproduce**
```
deploy d1 select sin(1);
SUCCEED
```
```
curl -XPOST http://node-4:20648/dbs/dbd/deployments/d1 -d'{"input":[[]]}'
{"code":-1,"msg":"fail to get tablet, table dbd."}
```
The current database used is dbd.
```
show deployment d1;
----- ------------
DB Deployment
----- ------------
dbd d1
----- ------------
1 row in set
------------------
SQL
------------------
DEPLOY d1 SELECT
sin(1)
;
------------------
1 row in set
Empty set
# Output Schema
--- -------- -------- ------------
# Field Type IsConstant
--- -------- -------- ------------
1 sin(1) Double NO
--- -------- -------- ------------
```
Contributor guide
Research direction
Look at the deployment logic in the codebase, likely in a deployment manager or SQL execution module. The error 'fail to get tablet, table dbd.' suggests a missing table reference. Start by searching for where deployments are created and how they handle table dependencies. Run the provided deploy and curl commands to reproduce the issue, then trace through the code to see why the deployment succeeds but the call fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- databases, machine-learning, sql
- Domain
- backend, databases, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100