Catalogd has a debug web page for showing catalog objects. Example URL: http://localhost:25020/catalog_object?object_type=TABLE&object_name=functional.alltypes
Catalog objects are shown in thrift debug strings which are hard to parse for tests. We do have some tests parsing simple things from the thrift debug strings. For instances, we extract the catalog version here:
We verify whether a table is loaded by checking some substrings:
However, it's hard to parse the partition ids of a hdfs table since the debug string is too complex. It'd be better to support exposing JSON results to ease test codes. JSON format results also help for customer to develop their monitor tools.
The new URL can be something like http://localhost:25020/catalog_object?json&object_type=TABLE&object_name=functional.alltypes (Just adding a "json" parameter).