I am using spark 1.4.0 with scala 2.10.4 and 0.3.2 of spark-xml Orderid is empty for some books and multiple entries of it for other books,did you include that in your xml file?
Just ran that code and it works fine, here is the output: What version are you using? val ctx = SQLContext.getOrCreate(sc) root |-- name: long (nullable = true) |-- orderId: long (nullable = true) |-- price: long (nullable = true) On Sun, Feb 21, 2016 at 2:14 PM Prathamesh Dharangutte <pratham.d...@gmail.com> wrote:
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org |
- spark-xml can't recognize schema Prathamesh Dharangutte
- Re: spark-xml can't recognize schema Sebastian Piu
- Re: spark-xml can't recognize schema Prathamesh Dharangutte
- Re: spark-xml can't recognize schema Sebastian Piu
- Re: spark-xml can't recognize sche... Prathamesh Dharangutte
- Re: spark-xml can't recognize... Sebastian Piu
- Re: spark-xml can't recognize schema Dave Moyers