[SERVER-35013] Support base conversion in $convert Created: 16/May/18 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Adinoyi Omuya | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | BIC, expression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Optimization
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
CONV() Convert numbers between different number bases (add as modes to `$convert`) |
| Comments |
| Comment by Asya Kamsky [ 09/Aug/22 ] |
|
Still looking to do this somewhat semi-regularly, in particular converting long to hex (hex equivalent string). |
| Comment by Patrick Meredith [ 22/Oct/18 ] |
|
$round and $trunc (with precision argument) will be handled under |
| Comment by Patrick Meredith [ 22/Oct/18 ] |
|
DEGREES and RADIANS were folded into |
| Comment by Asya Kamsky [ 09/Oct/18 ] |
|
CONV is "convert number to string providing from_base and to_base" |
| Comment by Asya Kamsky [ 17/May/18 ] |
|
Of the others, there are simple workarounds in agg available for SIGN and TRUNCATE. |
| Comment by Asya Kamsky [ 17/May/18 ] |
|
Removed ROUND() as that's tracked in |
| Comment by Asya Kamsky [ 17/May/18 ] |
|
Removed |