compute string length in Spark SQL DSL
问题 Edit: this is an old question concerning Spark 1.2 I've been trying to compute on the fly the length of a string column in a SchemaRDD for orderBy purposes. I am learning Spark SQL so my question is strictly about using the DSL or the SQL interface that Spark SQL exposes, or to know their limitations. My first attempt has been to use the integrated relational queries, for instance notes.select('note).orderBy(length('note)) with no luck at the compilation: error: not found: value length (Which