Description
1. https://github.com/apache/spark/pull/37171#discussion_r920796355
2. Remove unused error class INCONSISTENT_BEHAVIOR_CROSS_VERSION.FORMAT_DATETIME_BY_NEW_PARSER
3. Use the error class INDEX_ALREADY_EXISTS in the exception IndexAlreadyExistsException()
4. https://github.com/apache/spark/pull/38000#discussion_r1005438039
5. Remove unused NAMESPACE_ALREADY_EXISTS
6. Remove unused NAMESPACE_NOT_EMPTY
7. Remove unused NAMESPACE_NOT_FOUND