4paradigm / 4paradigm/OpenMLDB

Deploy without table success but use it fail

Offen
#3,551 0 Kommentare 0 Reaktionen 2 zugewiesene Personen Beansprucht von @aceforeverd Auf GitHub ansehen
bug high-priority storage-engine
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
databases, machine-learning, sql
Bereich
backend, databases, machine-learning
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.