apache / apache/datafusion

Show function's alias name in the output column

Đang mở
#17,469 6 bình luận 0 reaction 1 người được giao Được @devampatel03 nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
9.3k
Fork
2.4k
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
360

Mô tả

### Is your feature request related to a problem or challenge?

When executing `select date_format(values, patterns) from t`, people often expect the output column to be named with the function name `date_format`. However, the actual is `to_char`:

https://github.com/apache/datafusion/blob/9942ecd4ac791c26546db8d8bf6ae674006a49fc/datafusion-examples/examples/date_time_functions.rs#L486-L505

This might cause some confusion, if people don't know `date_format` is aliased to `to_char`, and brings poor experience.

### Describe the solution you'd like

As title, instead of showing the actual executing function's name("`to_char`"), showing its alias("`date_format`").

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.