-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Describe the bug
When I tried to create a new table in the local database with the wrong JSON format or wrong value format, it just gives the same error message. Instead, we should receive a more informative message as we receive in the remote database.
What I got on the remote db using the same JSON input for table creation
To Reproduce
Steps to reproduce the behavior:
- Go to Local Database
- Click on table creation button
- Select "Code" to give the JSON input for table creation
- Use this JSON
{
"AttributeDefinitions": [
{
"AttributeName": "test_field",
"AttributeType": "S"
}
],
"KeySchema": [
{
"AttributeName": "test_field",
"KeyType": "HASH"
}
],
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"WriteCapacityUnits": 1
},
"TableName": "test-db",
"GlobalSecondaryIndexes": [
{
"IndexName": "",
"KeySchema": [
{
"AttributeName": "",
"KeyType": "HASH | RANGE"
}
],
"Projection": {
"NonKeyAttributes": [
""
],
"ProjectionType": "ALL | KEYS_ONLY | INCLUDE"
},
"ProvisionedThroughput": {
"ReadCapacityUnits": 0,
"WriteCapacityUnits": 0
}
}
],
"SSESpecification": {
"Enabled": false,
"KMSMasterKeyId": "",
"SSEType": "AES256 | KMS"
},
"StreamSpecification": {
"StreamEnabled": false,
"StreamViewType": "NEW_IMAGE | OLD_IMAGE | NEW_AND_OLD_IMAGES | KEYS_ONLY"
}
}
Expected behavior
Error message on local DB should have a similar message as we got from remote DB.
Desktop (please complete the following information):
- OS:
LSB Version: core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
Metadata
Metadata
Assignees
Labels
No labels