Skip to content

Commit

Permalink
feat(query): Initial implementation of postgres-compatible number `to…
Browse files Browse the repository at this point in the history
…_char` function (#16507)

* num_to_char

Signed-off-by: coldWater <[email protected]>

* i32_to_char

Signed-off-by: coldWater <[email protected]>

* clean up

Signed-off-by: coldWater <[email protected]>

* register

Signed-off-by: coldWater <[email protected]>

* test

Signed-off-by: coldWater <[email protected]>

* f64_to_num_part

Signed-off-by: coldWater <[email protected]>

* test

Signed-off-by: coldWater <[email protected]>

* SG PL MI

Signed-off-by: coldWater <[email protected]>

* fix

Signed-off-by: coldWater <[email protected]>

---------

Signed-off-by: coldWater <[email protected]>
  • Loading branch information
forsaken628 authored Sep 26, 2024
1 parent bb92fdc commit 99e039f
Show file tree
Hide file tree
Showing 8 changed files with 1,280 additions and 0 deletions.
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"ser" = "ser"
"Ser" = "Ser"
"flate" = "flate"
"Tke" = "Tke"

[files]
extend-exclude = [
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/common/io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ chrono = { workspace = true }
chrono-tz = { workspace = true }
databend-common-base = { workspace = true }
databend-common-exception = { workspace = true }
enquote = "1.1.0"
enumflags2 = { workspace = true }
ethnum = { workspace = true }
geo = { workspace = true }
geos = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions src/common/io/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

pub mod constants;
pub mod format_diagnostic;
pub mod number;
pub mod prelude;

mod binary_read;
Expand Down
Loading

0 comments on commit 99e039f

Please sign in to comment.