Shivram Mani created HAWQ-577:
---------------------------------

             Summary: Stream PXF metadata response 
                 Key: HAWQ-577
                 URL: https://issues.apache.org/jira/browse/HAWQ-577
             Project: Apache HAWQ
          Issue Type: Bug
          Components: PXF
            Reporter: Shivram Mani
            Assignee: Goden Yao


getMetadata api returns the metadata corresponding to the user specified 
pattern. There is no limit to the #of tables the pattern can correspond do and 
the current approach of building in memory the json object might not scale.

We needed to serialize them inside a streaming object similar to the approach 
used for streaming the FragmentsResponse

The same applies also for the debug function that prints metadata of all the 
items - if there are too many of them the StringBuilder will run out of memory. 
The solution in the fragments case was to print a log of one fragment at a time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to