Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results for TDVT test case STR([num2]) are correct but do not match any expected results #1178

Open
hab6 opened this issue Sep 15, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@hab6
Copy link

hab6 commented Sep 15, 2023

About You:
Name: Michael Habiger
Company: Actian Corporation

Your question:
When running the TDVT test suite against Actian X (v11.2) or Actian Vector (v6.3), the actual results for test case STR([num2]) do not match any of the expected results.

The reason for the lack of matching expected results is that actual results contain trailing zeros due to the Actian database default display format for float4 (real) and float8/float (double precision) being n10.3, i.e. the scale is 3, thus 10.98 is shown as 10.980, 11.5 as 11.500, and so forth.

Here are the Actian results for test case STR([num2]) showing the values with trailing zeros due to the default scale of 3 for float values.

%null%
"10.980"
"11.500"
"11.690"
"13.040"
"16.730"
"17.250"
"17.860"
"3.790"
"6.460"
"6.800"
"7.870"
"8.510"
"8.980"

The TDVT suite has 14 expected results files in this folder for test case STR([num2]) to match results from various vendors (db2,firebird,greenplum,hana,hyper,kognitio,memsql,oracle,postgres,postgres_jdbc,sqlserver,sybaseiq,teradata
) but none of the results match the Actian results due to the trailing zeros.

Request:
We would like to request that a new expectation file be added (or an existing one be updated?) to match the Actian results.

Actian TDVT Actual Results Files:
actual.setup.cast.str.txt
actual.setup.cast.str_diff.txt

@lukewrites
Copy link
Member

Internal tracking: W-14129458

@rosswbrown rosswbrown added the enhancement New feature or request label Sep 26, 2023
@rosswbrown
Copy link
Contributor

Thanks for raising this issue. It is a known pain point and we've elevated finding a more general solution in our backlog. We'll update this issue with future progress in this area.

In the meantime, you can skip this test in your runs with a note about this known issue.

@hab6
Copy link
Author

hab6 commented Sep 27, 2023

Thanks for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants