Skip to content

qryexe throws the error "Failed to find SQL table for type: String" #11667

@jfuentesa

Description

@jfuentesa

Hello.

I'm using Apache Ignite's REST API. While the qryfldexe command successfully executes SQL SELECT statements, the qryexe command does not perform as expected.

The POST body is:
cmd=qryexe&keepBinary=true&type=String&pageSize=10&cacheName=MyCacheTable&arg1=1&qry=id%3D%3F

It causes this error:
Failed to find SQL table for type: String

The saved data is like this:

{
  "successStatus": 0,
  "response": {
    "items": [
      [
        1,
        "XXXXXXXXXXXXXXXX",
        1
      ]
    ],
    "last": true,
    "queryId": 209,
    "fieldsMetadata": [
      {
        "schemaName": "PUBLIC",
        "typeName": "MyCacheTable",
        "fieldName": "ID",
        "fieldTypeName": "java.lang.Integer"
      },
      {
        "schemaName": "PUBLIC",
        "typeName": "MyCacheTable",
        "fieldName": "NAME",
        "fieldTypeName": "java.lang.String"
      },
      {
        "schemaName": "PUBLIC",
        "typeName": "MyCacheTable",
        "fieldName": "SCHEMA",
        "fieldTypeName": "java.lang.Integer"
      }
    ]
  },
  "sessionToken": null,
  "securitySubjectId": null,
  "error": null
}

I can't find any information in the documentation about how to address this issue.

It's an error? How can I make a qryexe request in the table MyCacheTable?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions