dynamobi/dynamobi — Issue #501: [FNL-7] Windows vs. Linux diff in exponents
Author: dynamobi-build
Created: 2011-12-30 03:30:08+00:00
State: closed
Labels: Calc, FNL

[reporter="jvs", created="Wed, 4 Jan 2006 13:56:49 -0500 (GMT-05:00)"]
Email from Angel:

I'll take a look at it - I think the fennel calc conversation from

double to string need to be reworked anyway since it's not compliant

with the SQL standard in that it doesn't try produce the shortest

string. The java calc also has the same problem, but it has custom

code to do the conversion. I can probably port the java code for

doing the conversion over to the fennel calc and possibly try to make

it more SQL compliant.

For now, you can just disable that check.

Angel

On 1/4/06, John V. Sichi <jsichi@xxx> wrote:

> Hi Angel,

>

> I think the exponent diff below (E+002 instead of E+02) is an old

> problem which I had previously suppressed on Windows by disabling some

> other tests that exposed it. Is it possible to use some explicit

> formatting directive in the Fennel calc so that the exponent will come

> out the same on both Linux and Windows? The Java calc is already

> portable here.

>

> (I left out the tar file because I don't think there's any extra info in

> there.)

>

> JVS

>

> On Wed, 2006-01-04 at 11:55 -0800, Fan Zhang wrote:

> > (the attached .tar file was made with 'tar czf

> > test.tar ./initBuild.log ./testlog')

> >

> > [java] Running net.sf.farrago.test.FarragoSqlOperatorsTest

> > $FarragoFennelVmOperatorTest

> > [java] Tests run: 97, Failures: 1, Errors: 0, Time elapsed:

> > 87.795 sec

> > [java] Running net.sf.farrago.test.FarragoSqlOperatorsTest

> > $FarragoJavaVmOperatorTest

> > [java] Running net.sf.farrago.test.FarragoSqlOperatorsTest

> > [java] Tests run: 291, Failures: 1, Errors: 0, Time elapsed:

> > 247.014 sec

> > [java] Running net.sf.farrago.test.FarragoSqlTest

> > [java] Test net.sf.farrago.test.FarragoSqlOperatorsTest FAILED

> > [java] Tests run: 49, Failures: 1, Errors: 0, Time elapsed:

> > 308.846 sec

> > [java] Running net.sf.farrago.test.FennelDmlTest

> > [java] Test net.sf.farrago.test.FarragoSqlTest FAILED

> >

> > expected:<[4.5000000000000000E+02]> but was:<[4.5000000000000000E

> > +002]>

> > junit.framework.AssertionFailedError: expected:<[4.5000000000000000E

> > +02]> but was:<[4.5000000000000000E+002]>

> > at

> > net.sf.farrago.test.FarragoTestCase.compareResultSet(FarragoTestCase.java:478)

> > at net.sf.farrago.test.FarragoSqlOperatorsTest

> > $MyFarragoTestCase.check(FarragoSqlOperatorsTest.java:346)

> > at net.sf.farrago.test.FarragoSqlOperatorsTest

> > $FarragoSqlTester.check(FarragoSqlOperatorsTest.java:163)

> > at

> > org.eigenbase.sql.test.AbstractSqlTester.checkString(AbstractSqlTester.java:172)

> > at

> > org.eigenbase.sql.test.SqlOperatorTests.testCastString(SqlOperatorTests.java:377)

> > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)

> > at junit.extensions.TestSetup$1.protect(TestSetup.java:19)

> > at junit.extensions.TestSetup.run(TestSetup.java:23)

> >

>