spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamborta <jambo...@gmail.com>
Subject spark sql results maintain order (in python)
Date Thu, 04 Sep 2014 10:42:25 GMT
hi,

I ran into a problem with spark sql, when run a query like this "select
count(*), city, industry from table group by hour" and I would like to take
the results from the shemaRDD

1, I have to parse each line to get the values out of the dic (eg in order
to convert it to a csv)
2, The order is not kept in a python dict - I couldn't find a way to
maintain the original order (especially a problem in this case, when the
column names are derived).

thanks, 



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/spark-sql-results-maintain-order-in-python-tp13445.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message