we do here:
https://github.com/Parquet/parquet-mr/blob/b3efce20048307c7b7dd6aec2dcb08529c62320f/parquet-column/src/main/java/parquet/column/values/dictionary/DictionaryValuesWriter.java#L97
if MAX_DICTIONARY_ENTRIES == Integer.MAX_VALUE then the following expression can never be true:
getDictionarySize() > MAX_DICTIONARY_ENTRIES