Open
Description
Describe the bug
As developer configuring the storageTypeInfo of a Catalog, I see the storageType attribute is expected to be case sensitive e.g. s3
and S3
are treated differently. As a result my API call fails with message saying unsupported storage type.
To Reproduce
- Assuming you got Polaris server running
- Create a Catalog with
{
"catalog": {
"name": "my_catalog",
"type": "INTERNAL",
"readOnly": false,
"properties": {
"default-base-location": "s3://mycatalogs"
},
"storageConfigInfo": {
"storageType": "s3",
"allowedLocations": ["s3://mycatalogs"]
}
}
}
- The call will fail and checking logs you will find info saying
s3
storage type is not support and supported types are ... - Now update the JSON to be
{
"catalog": {
"name": "my_catalog",
"type": "INTERNAL",
"readOnly": false,
"properties": {
"default-base-location": "s3://mycatalogs"
},
"storageConfigInfo": {
"storageType": "S3",
"allowedLocations": ["s3://mycatalogs"]
}
}
}
- The API call will succeed.
Actual Behavior
Currently the API call succeeds only with S3
as storageType
Expected Behavior
It will be great if the system can handle the right case insensitive storage type names.
Additional context
No response
System information
OS: Linux Container
Object Storage: S3