v.24.6Performance Improvement

Improve least/greatest functions for nullable numeric types

Improve function least/greatest for nullable numberic type arguments. #64668 (KevinyhZou).