You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by yo...@apache.org on 2022/01/28 07:04:04 UTC
[superset] 05/10: rm
This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch pull/17881
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 26a9d982f44bf288aed812f0f434870ccadfd0de
Author: stephenLYZ <75...@qq.com>
AuthorDate: Fri Jan 21 22:11:08 2022 +0800
rm
---
superset/connectors/base/models.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/superset/connectors/base/models.py b/superset/connectors/base/models.py
index 85d8edd..6f00740 100644
--- a/superset/connectors/base/models.py
+++ b/superset/connectors/base/models.py
@@ -401,10 +401,6 @@ class BaseDatasource(
if isinstance(value, str):
value = value.strip("\t\n")
- quotes_value = re.findall(r"['|\"](.*?)['|\"]", value)
- if len(quotes_value) == 1 and quotes_value[0] == value.strip("'\""):
- value = value.strip("'\"")
-
if target_column_type == utils.GenericDataType.NUMERIC:
# For backwards compatibility and edge cases
# where a column data type might have changed