Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[SQL] SIGN function applied to all UNSIGNED INTEGER types fails Rust compilation with error[E0425] #5449

@rivudhk

Description

@rivudhk

Example SQL:

CREATE TABLE tbl(intt INTEGER UNSIGNED);

CREATE MATERIALIZED VIEW v AS SELECT
SIGN(intt) AS intt
FROM tbl;

Given example input:
"intt": 4294966290

Fails Rust compilation with the following error:

 error[E0425]: cannot find function `sign_u32N` in this scope
   --> crates/feldera_pipe_operator_b43685991b1380dd/src/lib.rs:77:51
    |
 77 |             let p2: Tup1<Option<u32>> = Tup1::new(sign_u32N(p1.1.as_ref().cloned()));
    |                                                   ^^^^^^^^^ help: a function with a similar name exists: `sign_dN`
    |
   ::: /Users/rivuadhikari/feldera/crates/sqllib/src/float.rs:235:1
    |
235 | some_polymorphic_function1!(sign, d, F64, F64);
    | ---------------------------------------------- similarly named function `sign_dN` defined here

Also applicable to :

  • TINYINT UNSIGNED
  • SMALLINT UNSIGNED
  • BIGINT UNSIGNED

Metadata

Metadata

Assignees

Labels

SQL compilerRelated to the SQL compiler

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions