Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
Description
Query
select key % 2 from TBL_DOUBLE
Result
java.lang.AssertionError: Conversion to relational algebra failed to preserve datatypes: validated type: RecordType(INTEGER NOT NULL KEY % 2) NOT NULL converted type: RecordType(DECIMAL(25, 15) NOT NULL KEY % 2) NOT NULL rel: LogicalProject(KEY % 2=[MOD(CAST($0):DECIMAL(30, 15) NOT NULL, 2)]) IgniteLogicalTableScan(table=[[PUBLIC, TBL_DOUBLE]]) at org.apache.calcite.sql2rel.SqlToRelConverter.checkConvertedType(SqlToRelConverter.java:492) at org.apache.calcite.sql2rel.SqlToRelConverter.convertQuery(SqlToRelConverter.java:607) at org.apache.ignite.internal.sql.engine.prepare.IgnitePlanner.rel(IgnitePlanner.java:222) at org.apache.ignite.internal.sql.engine.prepare.PlannerHelper.optimize(PlannerHelper.java:63) at org.apache.ignite.internal.sql.engine.prepare.PrepareServiceImpl.lambda$prepareQuery$1(PrepareServiceImpl.java:231) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
Note that some simple queries like "select 1 % 2" work.
Attachments
Issue Links
- blocks
-
IGNITE-18247 .NET: Thin 3.0: LINQ: Operators and functions
- Resolved
- Discovered while testing
-
IGNITE-18247 .NET: Thin 3.0: LINQ: Operators and functions
- Resolved
- is related to
-
CALCITE-5410 Assertion error on PERCENT_REMAINDER operator with DECIMAL type
- Closed
- links to