Re: Error in spark-xml

2016-05-01 Thread Mail.com
Can you try once by creating your own schema file and using it to read the XML. I had similar issue but got that resolved by custom schema and by specifying each attribute in that. Pradeep > On May 1, 2016, at 9:45 AM, Hyukjin Kwon wrote: > > To be more clear, > > If you set the rowTag as "

Re: Error in spark-xml

2016-05-01 Thread Hyukjin Kwon
To be more clear, If you set the rowTag as "book", then it will produces an exception which is an issue opened here, https://github.com/databricks/spark-xml/issues/92 Currently it does not support to parse a single element with only a value as a row. If you set the rowTag as "bkval", then it sh

Re: Error in spark-xml

2016-04-30 Thread Hyukjin Kwon
Hi Sourav, I think it is an issue. XML will assume the element by the rowTag as object. Could you please open an issue in https://github.com/databricks/spark-xml/issues please? Thanks! 2016-05-01 5:08 GMT+09:00 Sourav Mazumder : > Hi, > > Looks like there is a problem in spark-xml if the xml

Error in spark-xml

2016-04-30 Thread Sourav Mazumder
Hi, Looks like there is a problem in spark-xml if the xml has multiple attributes with no child element. For example say the xml has a nested object as below bk_113 bk_114 Now if I create a dataframe starting with rowtag bkval and then I do a select on that data frame it gives