anmolnar commented on PR #188:
URL: https://github.com/apache/hbase-connectors/pull/188#issuecomment-7416651347

   > **AI-assisted review:** drafted by Claude on behalf of @anmolnar.
   
   +1 overall. The fix looks right: cell-less results (cursors included) no 
longer NPE on `listCells()`, and first-cell-wins returns the newest scanned 
version. The closure still only captures `cols`, so the spark-shell 
serialization behaviour is preserved.
   
   A few small things:
   
   1. **Family precedence is a behaviour change.** When a qualifier exists in 
several families, the value used to come from the last family and now comes 
from the first. The scaladoc covers it, but since `hbaseRDDAsRows` is on an 
`@InterfaceAudience.Public` class, could you note the change in the 
JIRA/release note and add a PR description?
   2. **Audience annotation.** Please add `@InterfaceAudience.Private` to the 
new `object HBaseContext`, matching `LatestHBaseContextCache` in the same file. 
`resultToRow` ends up as a public static on `HBaseContext` for Java callers.
   3. **End-to-end coverage.** The new tests all call the helper with 
hand-built `Result`s. Could you add one case to `HBaseContextSuite` that writes 
two versions of a column and scans with `readVersions(n)`, so the real 
`TableInputFormat` path is covered too? The cursor path is hard to trigger in a 
mini-cluster, so the unit test is fine there.
   
   Nit: with a raw scan (`setRaw(true)`), a delete marker sorts ahead of the 
puts it masks and would be returned as an empty string. Fine to leave as is, 
but worth a sentence in the scaladoc.
   
   On the Copilot thread: agree with keeping the linear `columns.contains`. The 
column list is short, and the new code already does less work per cell than 
before since it only clones values for requested columns.


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

Reply via email to