Skip to content

Commit

Permalink
feat: create table with long name (#13871)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored Mar 31, 2021
1 parent ca506e9 commit 11dd249
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset/examples/big_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 11dd249

Please sign in to comment.