Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Handle DESC Table response properly #2210

Closed
penghuo opened this issue Oct 4, 2023 · 0 comments
Closed

[BUG] Handle DESC Table response properly #2210

penghuo opened this issue Oct 4, 2023 · 0 comments
Labels
bug Something isn't working untriaged v2.11.0 Issues targeting release v2.11.0

Comments

@penghuo
Copy link
Collaborator

penghuo commented Oct 4, 2023

What is the bug?

  • Query
DESC my_glue.default.http_logs
  • Error response
{
  "status": 503,
  "error": {
    "type": "JSONException",
    "reason": "There was internal problem at backend",
    "details": "JSONObject[\"comment\"] not found."
  }
}
    * result data
{
  "_index": ".query_execution_result",
  "_id": "Y9Ce-YoBCiYjElO8QaLY",
  "_score": 1,
  "_source": {
    "result": [
      "{'col_name':'@timestamp','data_type':'timestamp'}",
      "{'col_name':'clientip','data_type':'string'}",
      "{'col_name':'request','data_type':'string'}",
      "{'col_name':'status','data_type':'int'}",
      "{'col_name':'size','data_type':'int'}",
      "{'col_name':'year','data_type':'int'}",
      "{'col_name':'month','data_type':'int'}",
      "{'col_name':'day','data_type':'int'}",
      "{'col_name':'# Partition Information','data_type':'','comment':''}",
      "{'col_name':'# col_name','data_type':'data_type','comment':'comment'}",
      "{'col_name':'year','data_type':'int'}",
      "{'col_name':'month','data_type':'int'}",
      "{'col_name':'day','data_type':'int'}"
    ],
    "schema": [
      "{'column_name':'col_name','data_type':'string'}",
      "{'column_name':'data_type','data_type':'string'}",
      "{'column_name':'comment','data_type':'string'}"
    ]
  }
}
    * DESC 
+--------------------+---------+-------+
|            col_name|data_type|comment|
+--------------------+---------+-------+
|          @timestamp|timestamp|   null|
|            clientip|   string|   null|
|             request|   string|   null|
|              status|      int|   null|
|                size|      int|   null|
|                year|      int|   null|
|               month|      int|   null|
|                 day|      int|   null|
|# Partition Infor...|         |       |
|          # col_name|data_type|comment|
|                year|      int|   null|
|               month|      int|   null|
|                 day|      int|   null|
+--------------------+---------+-------+

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged v2.11.0 Issues targeting release v2.11.0
Projects
None yet
Development

No branches or pull requests

1 participant