when shard is null no need to format
@@ -84,9 +84,10 @@ public abstract class ColumnShardStrategy extends BaseShardStrategy implements S
shard = calcTableShard(tableName, shardValue);
if (shard != null)
shard = offsetTableShard(tableName, shard);
- }
return formatTableShard(shard);
}
+ return null;
+ }
protected String formatTableShard(String shard) {
return shard;
