Change estimatedByteSize from int to long for limit clause.