Skip to content

Commit

Permalink
Add GpuSubstring handling to SortOrder canonicalization (#1302)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lowe <jlowe@nvidia.com>
  • Loading branch information
jlowe authored Dec 7, 2020
1 parent 6a53452 commit 4cb4f5b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ object GpuOverrides {
g.qualifier,
g.explicitMetadata)
.canonicalized
case g: GpuSubstring =>
Substring(
canonicalizeToCpuForSortOrder(g.str),
canonicalizeToCpuForSortOrder(g.pos),
canonicalizeToCpuForSortOrder(g.len))
.canonicalized
case o: GpuExpression =>
throw new IllegalStateException(s"${o.getClass} is not expected to be a part of a SortOrder")
case other => other.canonicalized
Expand Down

0 comments on commit 4cb4f5b

Please sign in to comment.