[TiDB Usage Environment] Poc
[TiDB Version] 6.1.3
[Reproduction Path] Operations performed that led to the issue
[Encountered Issue: Problem Phenomenon and Impact]
Issue Description: Different stocks have different numbers of records. The goal is to partition the data so that it can be evenly distributed in the database. Some codes have more than 20 records, while some stocks have only 1 record.
Tried using Range partitioning, but encountered an error. Seeking advice on which partition type would be more suitable for this situation. The SQL syntax is:
This is a table design logic issue, right? You are converting a varchar type field to a date, and then comparing the date with another varchar type field. This will definitely cause an error.