From 8e3f71df4d6cb7b62faa02f388c0424a96163db5 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 22 Dec 2020 13:39:40 -0800 Subject: [PATCH] fix: specify VARCHAR size when loading examples (#12186) --- superset/datasets/commands/importers/v1/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/datasets/commands/importers/v1/utils.py b/superset/datasets/commands/importers/v1/utils.py index 209c6b4255..0415175f80 100644 --- a/superset/datasets/commands/importers/v1/utils.py +++ b/superset/datasets/commands/importers/v1/utils.py @@ -37,8 +37,8 @@ JSON_KEYS = {"params", "template_params", "extra"} type_map = { - "VARCHAR": String(), - "STRING": String(), + "VARCHAR": String(255), + "STRING": String(255), "TEXT": Text(), "BIGINT": BigInteger(), "FLOAT": Float(),