4paradigm / 4paradigm/OpenMLDB

Deploy without table success but use it fail

Abierto
#3,551 0 comentarios 0 reacciones 2 asignados Reclamado por @aceforeverd Ver en GitHub
bug high-priority storage-engine
Lenguaje dominante
C++
Estrellas
1.7k
Forks
331
Merge medio
12 d 12 h
PR fusionados (30 d)
1

Descripción

**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
--- -------- -------- ------------
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
databases, machine-learning, sql
Área
backend, databases, machine-learning
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.