Commit 9125b17
authored
[improvement](fe) Add current_database builtin alias (apache#62591)
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Add current_database() as a small compatibility alias
for the existing database() builtin so portable SQL can resolve the
current database name without rewrites.
### Release note
Support current_database() as an alias of database().
### Check List (For Author)
- Test: FE checkstyle and regression test update
- Manual test / No need to test (with reason)
- Behavior changed: Yes (adds a compatibility alias for current database
lookup)
- Does this need documentation: No1 parent 4ed1f21 commit 9125b17
2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- fe/fe-core/src/main/java/org/apache/doris/catalog
- regression-test/suites/query_p0/system
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
| 731 | + | |
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments