Skip to content

using specific sql via api cause error #2

Description

@bxb100

Description

use api/db9 cli cause this error, using jdbc protocal everything fine

Steps to reproduce

post https://db9.ai/api/customer/databases/:databaseId/sql

{
    "query": "select embedding(E'# from stdin')::vector(1024)"
}

got

{
    "columns": [],
    "rows": [],
    "row_count": 0,
    "command": "ERROR",
    "error": "ERROR: COPY not supported | sqlstate: 0A000"
}

Expected behavior

Image

Area

SDK (get-db9)

Environment

  • CLI: 2.2.0 (e876146)
  • SDK: 0.6.1

Logs / Error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions