superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [bugfix] handling UTF8 in Druid dimensions (#4943)
Date Wed, 09 May 2018 05:04:07 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 918399d  [bugfix] handling UTF8 in Druid dimensions (#4943)
918399d is described below

commit 918399d4e294e86e7b7efd85e8d7c1bcddcfe2eb
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Tue May 8 22:04:05 2018 -0700

    [bugfix] handling UTF8 in Druid dimensions (#4943)
---
 superset/connectors/druid/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py
index 374d239..079648f 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -1318,7 +1318,7 @@ class DruidDatasource(Model, BaseDatasource):
         str instead of an object.
         """
         for col in groupby_cols:
-            df[col] = df[col].fillna('<NULL>').astype(str)
+            df[col] = df[col].fillna('<NULL>').astype('unicode')
         return df
 
     def query(self, query_obj):

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message