[
https://issues.apache.org/jira/browse/IGNITE-13825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17245750#comment-17245750
]
Ignite TC Bot commented on IGNITE-13825:
----------------------------------------
{panel:title=Branch: [pull/8551/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/8551/head] Base: [master] : New Tests
(9)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Queries 1{color} [[tests
9|https://ci.ignite.apache.org/viewLog.html?buildId=5780003]]
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCacheReplicatedFieldsQueryROSelfTest.testDecimalColumnScaleAndPrecision -
PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCacheReplicatedFieldsQuerySelfTest.testDecimalColumnScaleAndPrecision -
PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCacheLocalFieldsQuerySelfTest.testDecimalColumnScaleAndPrecision -
PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
SqlResultSetMetaSelfTest.testDecimalColumnScaleAndPrecision - PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCachePartitionedFieldsQueryP2PEnabledSelfTest.testDecimalColumnScaleAndPrecision
- PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCacheAtomicNearEnabledFieldsQuerySelfTest.testDecimalColumnScaleAndPrecision
- PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCacheAtomicFieldsQuerySelfTest.testDecimalColumnScaleAndPrecision -
PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCachePartitionedFieldsQuerySelfTest.testDecimalColumnScaleAndPrecision -
PASSED{color}
* {color:#013220}IgniteBinaryCacheQueryTestSuite:
IgniteCacheReplicatedFieldsQueryP2PEnabledSelfTest.testDecimalColumnScaleAndPrecision
- PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci.ignite.apache.org/viewLog.html?buildId=5779287&buildTypeId=IgniteTests24Java8_RunAll]
> Decimal columns in SQL result set have invalid precision and scale
> ------------------------------------------------------------------
>
> Key: IGNITE-13825
> URL: https://issues.apache.org/jira/browse/IGNITE-13825
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Affects Versions: 2.9
> Reporter: Igor Sapego
> Assignee: Igor Sapego
> Priority: Major
> Fix For: 2.10
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If the SQL result set of contains Decimal column it now returns MAX_SHORT as
> precision and MAX_USHORT as scale, no matter what is the precision and scale
> of the original table column.
> SQL:
> {code:sql}
> create table person(id int, name character(10), age decimal(3,0), primary key
> (id));
> {code}
> Java (from internal component)
> {code:java}
> GridQueryFieldMetadata meta = kernal.query().getIndexing().resultMetaData(
> "PUBLIC", "select age from person;"
> ).iterator().next();
> assert meta.precision() == 3;
> assert meta.scale() == 0;
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)