This is an automated email from the ASF dual-hosted git repository.
beto 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 11dd249 feat: create table with long name (#13871)
11dd249 is described below
commit 11dd2493b3427674bff8e3a7233bbfebff60bdc8
Author: Beto Dealmeida <[email protected]>
AuthorDate: Wed Mar 31 11:28:34 2021 -0700
feat: create table with long name (#13871)
---
superset/examples/big_data.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/superset/examples/big_data.py b/superset/examples/big_data.py
index ba859dd..d46e184 100644
--- a/superset/examples/big_data.py
+++ b/superset/examples/big_data.py
@@ -14,6 +14,8 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+import random
+import string
from typing import List
import sqlalchemy.sql.sqltypes
@@ -68,3 +70,7 @@ def load_big_data() -> None:
]
for i in range(1000):
add_data(columns=columns, num_rows=10, table_name=f"small_table_{i}")
+
+ print("Creating table with long name")
+ name = "".join(random.choices(string.ascii_letters + string.digits, k=64))
+ add_data(columns=columns, num_rows=10, table_name=name)