AnishKanth commented on issue #4603: Can not find a deserializer for 
non-concrete Map type
URL: 
https://github.com/apache/incubator-pinot/issues/4603#issuecomment-534416218
 
 
   > Hi @AnishKanth, could you put the post request you are using? Also have 
you tried out `pinot-admin` command?
   
   Please find the python Request:
   import requests
   import json
   URL = "http://13.89.201.184:9000/schemas/validate";
   data = { "schemaName": "transcripthh", "dimensionFieldSpecs": [  { "name": 
"studentID", "dataType": "STRING" },  {  "name": "firstName", "dataType": 
"STRING" }, { "name": "lastName", "dataType": "STRING" }, { "name": "gender", 
"dataType": "STRING" }, { "name": "subject", "dataType": "STRING" } ], 
"metricFieldSpecs": [ { "name": "score", "dataType": "FLOAT" } ] }
   payload = json.dumps(data)
   headers = {
                   'content-type': "application/json"
               }
   response = requests.request("POST", URL, data=payload,headers=headers)
   
   Curl command:
   curl -X POST --header 'Content-Type: application/json' --header 'Accept: 
text/plain' -d '{ \ 
      "schemaName": "transcript", \ 
      "dimensionFieldSpecs": [ \ 
        { \ 
          "name": "studentID", \ 
          "dataType": "STRING" \ 
        }, \ 
        { \ 
          "name": "firstName", \ 
          "dataType": "STRING" \ 
        }, \ 
        { \ 
          "name": "lastName", \ 
          "dataType": "STRING" \ 
        }, \ 
        { \ 
          "name": "gender", \ 
          "dataType": "STRING" \ 
        }, \ 
        { \ 
          "name": "subject", \ 
          "dataType": "STRING" \ 
        } \ 
      ], \ 
      "metricFieldSpecs": [ \ 
        { \ 
          "name": "score", \ 
          "dataType": "FLOAT" \ 
        } \ 
      ] \ 
    }' 'http://localhost:9000/schemas/validate'

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to