if (node.clusteredBy().isPresent()) {
ClusteredBy clusteredBy = node.clusteredBy().get();
int numShards;
if (clusteredBy.numberOfShards().isPresent()) {
numShards = ExpressionToNumberVisitor.convert(clusteredBy.numberOfShards().get(), context.parameters()).intValue();
if (numShards < 1) {
throw new IllegalArgumentException("num_shards in CLUSTERED clause must be greater than 0");
}
} else {
numShards = Constants.DEFAULT_NUM_SHARDS;