anshul98ks123 opened a new pull request, #16510: URL: https://github.com/apache/pinot/pull/16510
### Issue(s) [Preview API not respecting passed Schema properly](https://startree.atlassian.net/browse/STP-4199) ### Description _What:_ Preview API doesn't conform the data rows as per schema in following case: -> If we remove few columns from the schema, preview API still returns those columns in rows _Why:_ The [logic](applySchemaAndTransform) of converting SourceRows to Rows based on schema through a concept of transformers Currently, there's no transformer to filter out columns which have been removed from the schema _How:_ This PR adds a new transformer that removes the columns from data rows which are not present in the schema ### Testing - [X] UTs - [X] Existing Integration Tests - [ ] Ran startree pinot locally and verified Preview API | Request | Old Response | New Response | Diff | | ------------- | ------------- | ------------- | ------------- | | TBA | TBA | TBA | TBA | - [ ] Manual testing on dev interstellar (STP PR Image -> `TBA`) [Example](TBA) Data Modelling Page: TBA Table Schema: TBA -- 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]
