ViktorBystrov72 opened a new pull request, #6964:
URL: https://github.com/apache/hive/pull/6964

   ### What changes were proposed in this pull request?
   
   Validate requested table-statistics columns before direct SQL execution, 
using the table already loaded by `GetHelper`.
   
   ### Why are the changes needed?
   
   For [HIVE-28498](https://issues.apache.org/jira/browse/HIVE-28498), JDO 
rejects requests containing nonexistent columns while direct SQL silently 
returns partial statistics. Validate before SQL error handling so both paths 
return the same `MetaException` without an extra table lookup or fallback.
   
   ### Does this PR introduce any user-facing change?
   
   Yes. Requests for nonexistent columns fail consistently. Empty requests and 
existing columns without statistics retain their behavior.
   
   ### How was this patch tested?
   
   The new Derby regression fails with direct SQL on the original code; both 
SQL/JDO variants pass after the fix. The full metastore-server unit suite 
passes (56,968 tests, 4 existing skips), as does the `TestStats` check-in class 
(6 tests, 3 existing skips). Scoped Checkstyle comparison against pristine 
master reports no new findings; existing warnings remain. Validation used 
embedded Derby; no live external database tests were run.
   
   OpenAI Codex assisted with the implementation and regression tests.
   


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