KendraKrat opened a new issue #2304: URL: https://github.com/apache/drill/issues/2304
Consider the example shown on the XML format plugin's documentation page (https://drill.apache.org/docs/xml-format-plugin/), which shows a list of books (simplified below to one book for brevity): <books> <book> <author>O.-J. Dahl</author> <title binding="hardcover" subcategory="non-fiction">Structured Programming</title> <category>PROGRAMMING</category> <year>1972</year> </book> </books> With dataLevel=2, each book becomes a row in the query output table, and the title attributes will end up correctly in the attributes column as shown on the documentation page. However, if the top-level item <book> has attributes, these attributes are not captured anywhere within the query output table. My data is similar to this, and I need to capture the important attributes of the top-level items in my list. Could they be added to the attributes column? If the <book> element above had a weight attribute, e.g.: <book weight="0.8"> then could it be added to the attributes column, e.g.: {"book_weight":0.8","title_binding":"hardcover","title_subcategory":"non-fiction"} ? -- 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]
