Reputation: 93
As we know that explain followed by query in hive gives us the explain plan for that query as an output, is it possible to get the explain plan in any form of data structure instead of a text format?
Upvotes: 1
Views: 576
Reputation: 13927
I think you can get the output as JSON using FORMATTED
. You can try:
EXPLAIN FORMATTED query
This should give you the explain output in JSON format.
Upvotes: 1