dejankrak-db commented on PR #60531: URL: https://github.com/apache/spark/pull/60531#issuecomment-6922252193
Thanks for the reviews. On the two design questions and the scope: - **Layout declared three times.** I kept `getPhysicalType`, `rowRepresentationType` and `getElementSize` as separate declarations to keep the contract change small, and added a test that checks every registered framework type: its row representation must be a built-in type with the same physical layout as `getPhysicalType`, and `getElementSize` must equal the slot size `GenerateUnsafeProjection` uses. A mismatched type now fails that test instead of misreading rows. We can derive both from the physical type later if more complex-backed types make the duplication a burden. - **Interpreted projections, UDTs and column vectors.** The interpreted safe and mutable projections and UDT-wrapped types are covered now (a6ba089e2bc), with tests in both modes on a reused `UnsafeRow`. Column vectors are left to the first complex-backed type: the `TypeOps` doc says they do not build child vectors for such a type yet. - @davidm-db, I narrowed the description to the paths this PR covers and tests, and named column vectors as out of scope. -- 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]
