"ClassCastException" in DV with SUM() on BigDecimal

Solution Verified - Updated -

Issue

  • Receiving below on a query containing a SUM() on a BigDecimal field:
java.math.BigDecimal cannot be cast to java.math.BigInteger...
ClassCastException:
org.teiid.common.buffer.impl.SizeUtility.getSize() line 193 (teiid-engine-8.4.4-redhat-1.jar)
org.teiid.common.buffer.impl.SizeUtility.getBatchSize() line 139
org.teiid.common.buffer.impl.BufferManagerImpl$BatchManagerImpl.getSizeEstimate() line 280
org.teiid.common.buffer.impl.BufferManagerImpl$BatchManagerImpl.createManagedBatched() line 213
org.teiid.common.buffer.impl.TupleBuffer.saveBatch() line 257
org.teiid.query.processor.BatchCollector.collectTupples() line 176
org.teiid.query.processor.BatchCollector.collectTupples() line 139
org.teiid.query.processor.relational.SourceState.getTuppleBuffer() line 243
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.loadLeft() line 231
org.teiid.query.processor.relational.JoinNode.nextBatchDirect() line 187
org.teiid.query.processor.relational.RelationalNode.nextBatch() line 278
org.teiid.query.processor.BatchCollector.collectTupples() line 157
org.teiid.query.processor.BatchCollector.collectTupples() line 139

Environment

  • Red Hat JBoss Data Virtualization (DV) 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content