From db632352e39fce648812cdd976b1abe35c1e089f Mon Sep 17 00:00:00 2001 From: Abhishek Balaji Radhakrishnan Date: Fri, 14 Jul 2023 12:40:44 -0700 Subject: [PATCH 1/2] Remove the deprecated InsertCannotOrderByDescending fault for next release. --- docs/multi-stage-query/reference.md | 1 - website/.spelling | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/multi-stage-query/reference.md b/docs/multi-stage-query/reference.md index 08335ff1143f..14289ea5970b 100644 --- a/docs/multi-stage-query/reference.md +++ b/docs/multi-stage-query/reference.md @@ -454,4 +454,3 @@ The following table describes error codes you may encounter in the `multiStageQu | `WorkerFailed` | A worker task failed unexpectedly. | `errorMsg`

`workerTaskId`: The ID of the worker task. | | `WorkerRpcFailed` | A remote procedure call to a worker task failed and could not recover. | `workerTaskId`: the id of the worker task | | `UnknownError` | All other errors. | `message` | -| `InsertCannotOrderByDescending` | Deprecated. An INSERT query contained a `CLUSTERED BY` expression in descending order. Druid's segment generation code only supports ascending order. The query returns a `ValidationException` instead of the fault. | `columnName` | diff --git a/website/.spelling b/website/.spelling index be6441fd7c65..7674ad0e6ded 100644 --- a/website/.spelling +++ b/website/.spelling @@ -713,7 +713,6 @@ DurableStorageConfiguration ColumnTypeNotSupported InsertCannotAllocateSegment InsertCannotBeEmpty -InsertCannotOrderByDescending InsertCannotReplaceExistingSegment InsertLockPreempted InsertTimeNull From 2ea407c35cf6c9ea573547fcb12b906fca356a5d Mon Sep 17 00:00:00 2001 From: Abhishek Balaji Radhakrishnan Date: Sun, 16 Jul 2023 21:43:22 -0700 Subject: [PATCH 2/2] Add a note about DESC ordering in CLUSTERED BY grammar. --- docs/multi-stage-query/reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/multi-stage-query/reference.md b/docs/multi-stage-query/reference.md index 14289ea5970b..fe86ccad5058 100644 --- a/docs/multi-stage-query/reference.md +++ b/docs/multi-stage-query/reference.md @@ -203,7 +203,8 @@ For more information about partitioning, see [Partitioning](concepts.md#partitio ### `CLUSTERED BY` The `CLUSTERED BY ` clause is optional for [INSERT](#insert) and [REPLACE](#replace). It accepts a list of -column names or expressions. +column names or expressions. Druid's segment generation only supports ascending order, so an `INSERT` or `REPLACE` query with +`CLUSTERED BY` columns in `DESC` ordering is not allowed. For more information about clustering, see [Clustering](concepts.md#clustering).