What are the limits on the number of columns and row size in TiDB?

  • The maximum number of columns in TiDB defaults to 1017. You can adjust the number up to 4096.
  • The maximum size of a single row defaults to 6 MB. You can increase the number up to 120 MB.

For more information, see TiDB Limitations.