Re: XML Processing using Spark SQL

2016-05-12 Thread Mail.com
Hi Arun, Could you try using Stax or JaxB. Thanks, Pradeep > On May 12, 2016, at 8:35 PM, Hyukjin Kwon wrote: > > Hi Arunkumar, > > > I guess your records are self-closing ones. > > There is an issue open here, https://github.com/databricks/spark-xml/issues/92 > >

Re: XML Processing using Spark SQL

2016-05-12 Thread Hyukjin Kwon
Hi Arunkumar, I guess your records are self-closing ones. There is an issue open here, https://github.com/databricks/spark-xml/issues/92 This is about XmlInputFormat.scala and it seems a bit tricky to handle the case so I left open until now. Thanks! 2016-05-13 5:03 GMT+09:00 Arunkumar

XML Processing using Spark SQL

2016-05-12 Thread Arunkumar Chandrasekar
Hello, Greetings. I'm trying to process a xml file exported from Health Kit application using Spark SQL for learning purpose. The sample record data is like the below: . I want to have the column name of my table as the field value like type, sourceName, sourceVersion and the row entries