https://pinot.apache.org/ logo
#general
Title
# general
s

Sashikanth Damaraju

09/23/2020, 10:24 PM
👋 Hi pinot devs. I am using the open source docker images to host a local cluster. I noticed that a schema that used to work for the 0.4.0 version of the images is throwing a 400 bad request with the 0.5.0 version of the images (latest as of today). The schema I'm using is: https://pastebin.pl/view/a509e966 Where should I be looking for any specific stacktraces / logs?
docker logs -f <controller_container_id>
doesn't show anything relevant to the 400
j

Jackie

09/23/2020, 10:36 PM
Hi Sashikanth, what commend did you use to post the schema?
s

Sashikanth Damaraju

09/23/2020, 10:37 PM
I'm doing this programmatically via:
Copy code
val createSchemaResponse = Request
        .post(_controllerUri + "/schemas")
        .bodyString(schema.toSingleLineJsonString(), ContentType.APPLICATION_JSON)
        .execute()
        .returnContent()
        .asString();
Using the
org.apache.hc.client5.http.fluent
http client
where the
bodyString
arg is from the pastebin link
j

Jackie

09/23/2020, 11:20 PM
We recently added some validation to the schema. Can you please also share the table config for this table?
What is the error message in the 400 response?
s

Sashikanth Damaraju

09/25/2020, 5:14 PM
All I can tell is that it says "Bad request". Turns out curl call for the same payload works. Looks like it's got something to do with the way it handles the same client call.