saghatelian commented on issue #35682:
URL: https://github.com/apache/superset/issues/35682#issuecomment-3410225686

   Following the steps suggested by @dosu , here are the details of the request:
   
   
   Request URL: `/api/v1/sqllab/format_sql/`
   
   Payload: 
   ```
   {
       "sql": "SELECT COUNT(client_id) AS `Signups` \nFROM 
`reporting-280507.dataform_intermediate.clients_extended` \nWHERE `signup_date` 
>= CAST('2024-10-16T14:24:19.000000' AS TIMESTAMP) AND `signup_date` < 
CAST('2025-10-17T14:24:19.000000' AS TIMESTAMP)\n LIMIT 50000;",
       "engine": {
           "backend": "bigquery"
       }
   }
   ```
   
   Response:
   ```
   {
     "message": {
       "engine": [
         "Not a valid string."
       ]
     }
   }
   ```
   
   Seems like the error is because the engine is a JSON object 
`{"backend":"bigquery"}}`, not a string.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to