Skip to content

cannot find function `trunc_SqlDecimalN_i32 #6524

Description

@gz

found while working on expression evaluator:

create table t (d decimal(8,3));
create view v as select trunc(d) from t;
 error[E0425]: cannot find function `trunc_SqlDecimalN_i32` in this scope
   --> crates/feldera_pipe_operator_9c5d4dd1750b02e7/src/lib.rs:85:23
    |
 85 |             Tup1::new(trunc_SqlDecimalN_i32(
    |                       ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `bround_SqlDecimalN_i32`
    |
   ::: /home/ubuntu/feldera/crates/sqllib/src/decimal.rs:237:1
    |
237 | some_polymorphic_function2!(bround [const P: usize, const S: usize], SqlDecimal, SqlDecimal<P, S>, i32, i32, SqlDecimal<P, S>);
    | ------------------------------------------------------------------------------------------------------------------------------ similarly named function `bround_SqlDecimalN_i32` defined here
 error: could not compile `feldera_pipe_operator_9c5d4dd1750b02e7` (lib) due to 1 previous error

This is an existing test in Regression1Tests.java:706 but it looks like it doesnt get compiled all the way

Metadata

Metadata

Assignees

Labels

SQL compilerRelated to the SQL compilerbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions