code: func (t *partitionedTable) AddRecord(ctx sessionctx.Context, r []types.Datum, opts ...*table.AddRecordOpt) (recordID int64, err error) {
  	partitionInfo := t.meta.GetPartitionInfo()
  	pid, err := t.locatePartition(ctx, partitionInfo, r)
  	if err != nil {
  		return 0, errors.Trace(err)
  	}
  
  	tbl := t.GetPartition(pid)
  	return tbl.AddRecord(ctx, r, opts...)
  }
docs: // AddRecord implements the AddRecord method for the table.Table interface.