ayushbilala commented on PR #54824:
URL: https://github.com/apache/spark/pull/54824#issuecomment-4406298002

   @cloud-fan Both addressed. 
   
   For (a): we extracted a single ShowTablesJsonExec physical plan node that 
handles both SHOW TABLES AS JSON (isExtended=false) and SHOW TABLE EXTENDED AS 
JSON (isExtended=true). 
   
   DataSourceV2Strategy now routes asJson=true to it for both variants, 
eliminating the duplicated JSON emission from ShowTablesExec and 
ShowTablesExtendedExec. V1 path in ShowTablesCommand remains separate since it 
operates on a different plan type (ResolvedV1Database). 
   
   For (b): added assert(tables.length == N) to the tests that used .find() 
without a count check.


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