I found a way to create a table with sharded engine during migration in sentry code.
But I can’t understand the instructions in the comments.
“”"
Provides the SQL for create table operations.
If the operation is being performed on a cluster marked as multi node, the
replicated versions of the tables will be created instead of the regular ones.
The shard and replica values will be taken from the macros configuration for
multi node clusters, so these need to be set prior to running the migration.
If unsharded=True is passed, data will be replicated on every shard of the cluster.
“”"
How can I check the sharding and replication options and then migrate to use the table with the engine applied?