You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2023/06/17 03:27:02 UTC
[superset] branch master updated: chore: Remove obsolete Druid NoSQL REGEX operator (#24415)
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new db65b74e4b chore: Remove obsolete Druid NoSQL REGEX operator (#24415)
db65b74e4b is described below
commit db65b74e4bd9310add6709784933c179408db81c
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Fri Jun 16 20:26:53 2023 -0700
chore: Remove obsolete Druid NoSQL REGEX operator (#24415)
---
UPDATING.md | 1 +
superset-frontend/src/explore/constants.ts | 2 --
superset/utils/core.py | 2 --
3 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/UPDATING.md b/UPDATING.md
index d6c6f71668..41a120f310 100644
--- a/UPDATING.md
+++ b/UPDATING.md
@@ -34,6 +34,7 @@ assists people when migrating to a new version.
### Breaking Changes
+- [24415](https://github.com/apache/superset/pull/24415): Removed the obsolete Druid NoSQL REGEX operator.
- [24423](https://github.com/apache/superset/pull/24423): Removed deprecated APIs `/superset/slice_json/...`, `/superset/annotation_json/...`
- [24400](https://github.com/apache/superset/pull/24400): Removed deprecated APIs `/superset/recent_activity/...`, `/superset/fave_dashboards_by_username/...`, `/superset/fave_dashboards/...`, `/superset/created_dashboards/...`, `/superset/user_slices/`, `/superset/created_slices/...`, `/superset/fave_slices/...`, `/superset/favstar/...`,
- [24401](https://github.com/apache/superset/pull/24401): Removes the deprecated `metrics` column (which was blossomed in [20732](https://github.com/apache/superset/pull/20732)) from the `/api/v1/dataset/` API.
diff --git a/superset-frontend/src/explore/constants.ts b/superset-frontend/src/explore/constants.ts
index e539c16de7..09362f423d 100644
--- a/superset-frontend/src/explore/constants.ts
+++ b/superset-frontend/src/explore/constants.ts
@@ -39,7 +39,6 @@ export enum Operators {
NOT_IN = 'NOT_IN',
LIKE = 'LIKE',
ILIKE = 'ILIKE',
- REGEX = 'REGEX',
IS_NOT_NULL = 'IS_NOT_NULL',
IS_NULL = 'IS_NULL',
LATEST_PARTITION = 'LATEST_PARTITION',
@@ -75,7 +74,6 @@ export const OPERATOR_ENUM_TO_OPERATOR_TYPE: {
display: t('Like (case insensitive)'),
operation: 'ILIKE',
},
- [Operators.REGEX]: { display: t('Regex'), operation: 'REGEX' },
[Operators.IS_NOT_NULL]: {
display: t('Is not null'),
operation: 'IS NOT NULL',
diff --git a/superset/utils/core.py b/superset/utils/core.py
index 3a97c73fde..125a406bf5 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -236,7 +236,6 @@ class FilterOperator(str, Enum):
IS_NOT_NULL = "IS NOT NULL"
IN = "IN"
NOT_IN = "NOT IN"
- REGEX = "REGEX"
IS_TRUE = "IS TRUE"
IS_FALSE = "IS FALSE"
TEMPORAL_RANGE = "TEMPORAL_RANGE"
@@ -253,7 +252,6 @@ class FilterStringOperators(str, Enum):
NOT_IN = ("NOT_IN",)
ILIKE = ("ILIKE",)
LIKE = ("LIKE",)
- REGEX = ("REGEX",)
IS_NOT_NULL = ("IS_NOT_NULL",)
IS_NULL = ("IS_NULL",)
LATEST_PARTITION = ("LATEST_PARTITION",)