Skip to content

Commit

Permalink
Limit table name length
Browse files Browse the repository at this point in the history
Postgres has a maximum of 63 characters per table name
  • Loading branch information
ktmud committed May 11, 2022
1 parent 7e9bff6 commit 9bb5c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/examples/big_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ def load_big_data() -> None:
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))
name = "".join(random.choices(string.ascii_letters + string.digits, k=60))
add_data(columns=columns, num_rows=10, table_name=name)

0 comments on commit 9bb5c65

Please sign in to comment.