[ 
https://issues.apache.org/jira/browse/CALCITE-7388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053174#comment-18053174
 ] 

Mihai Budiu commented on CALCITE-7388:
--------------------------------------

I understand that this is about validating some config files.

Is there a list of criteria which make these files valid somewhere?

Is there a library which validates such files (not obvious that this should be 
part of Calcite).

> Redis Adapter operand config should not support empty string
> ------------------------------------------------------------
>
>                 Key: CALCITE-7388
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7388
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 1.41.0
>            Reporter: terran2010
>            Priority: Major
>              Labels: pull-request-available
>
> The normal config
> {code:java}
> "operand": {
>   "dataFormat": "csv",
>   "keyDelimiter": ":",
>   "fields": [
>     {
>       "name": "DEPTNO",
>       "type": "varchar",
>       "mapping": 0
>     },
>     {
>       "name": "NAME",
>       "type": "varchar",
>       "mapping": 1
>     }
>   ]
> } {code}
> but this config
> {code:java}
> "operand": {
>   "dataFormat": "",
>   "keyDelimiter": ":",
>   "fields": []
> } {code}
> It was successfully loaded into the Redis data model, resulting in errors 
> when executing SQL. Normally, illegal key parameters should be disabled when 
> building metadata. We can consider optimizing it



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to