[ https://issues.apache.org/jira/browse/ARROW-6120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krisztian Szucs resolved ARROW-6120. ------------------------------------ Resolution: Fixed Issue resolved by pull request 5300 [https://github.com/apache/arrow/pull/5300] > [C++][Gandiva] including some headers causes decimal_test to fail > ----------------------------------------------------------------- > > Key: ARROW-6120 > URL: https://issues.apache.org/jira/browse/ARROW-6120 > Project: Apache Arrow > Issue Type: Bug > Components: C++ - Gandiva > Reporter: Benjamin Kietzman > Assignee: Wes McKinney > Priority: Major > Labels: pull-request-available > Fix For: 0.15.0 > > Time Spent: 20m > Remaining Estimate: 0h > > It seems this is due to precompiled code being contaminated with undesired > headers > For example, {{#include <iostream>}} in {{arrow/compare.h}} causes: > {code} > [ RUN ] TestDecimal.TestCastFunctions > ../../src/gandiva/tests/decimal_test.cc:478: Failure > Value of: (array_dec)->Equals(outputs[2], > arrow::EqualOptions().nans_equal(true)) > Actual: false > Expected: true > expected array: [ > 1.23, > 1.58, > -1.23, > -1.58 > ] actual array: [ > 0.00, > 0.00, > 0.00, > 0.00 > ] > ../../src/gandiva/tests/decimal_test.cc:481: Failure > Value of: (array_dec)->Equals(outputs[2], > arrow::EqualOptions().nans_equal(true)) > Actual: false > Expected: true > expected array: [ > 1.23, > 1.58, > -1.23, > -1.58 > ] actual array: [ > 0.00, > 0.00, > 0.00, > 0.00 > ] > ../../src/gandiva/tests/decimal_test.cc:484: Failure > Value of: (array_dec)->Equals(outputs[3], > arrow::EqualOptions().nans_equal(true)) > Actual: false > Expected: true > expected array: [ > 1.23, > 1.58, > -1.23, > -1.58 > ] actual array: [ > 0.00, > 0.00, > 0.00, > 0.00 > ] > ../../src/gandiva/tests/decimal_test.cc:497: Failure > Value of: (array_float64)->Equals(outputs[6], > arrow::EqualOptions().nans_equal(true)) > Actual: false > Expected: true > expected array: [ > 1.23, > 1.58, > -1.23, > -1.58 > ] actual array: [ > inf, > inf, > -inf, > -inf > ] > [ FAILED ] TestDecimal.TestCastFunctions (134 ms) > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003)