You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/10/09 18:11:57 UTC

[GitHub] [spark] rdblue edited a comment on pull request #29066: [WIP][SPARK-23889] DataSourceV2: required sorting and clustering for writes

rdblue edited a comment on pull request #29066:
URL: https://github.com/apache/spark/pull/29066#issuecomment-706329765


   Here's an extractor that should work:
   
   ```scala
   private[sql] object SortValue {
     def unapply(expr: Expression): Option[(Expression, SortDirection, NullOrdering)] = expr match {
       case sort: SortOrder =>
         Some(sort.expression, sort.direction, sort.nullOrdering)
       case _ =>
         None
     }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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