Indhumathi27 opened a new pull request, #5932: URL: https://github.com/apache/hive/pull/5932
### What changes were proposed in this pull request? The code was modified to check if a partition value is numeric using NumberUtils.isCreatable(partVal) before parsing it, instead of only filtering out the configured default partition name. This ensures that only valid numeric partition values are processed, and any non-numeric values are skipped. ### Why are the changes needed? If the value of hive.exec.default.partition.name is set to one value during data insertion (for example, 'somevalue') and then changed to another value (for example, 'othervalue') during querying, Hive can encounter partition directories named with non-numeric strings. The old logic would try to parse these unexpected strings as numbers, causing a NumberFormatException. The new logic prevents this error by ignoring any partition value that isn't numeric, making the code more robust to configuration changes and avoiding runtime failures. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? New test case added -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org