Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

TPC-H q7, q8, q9 run failed when using String for Date #987

Closed
weiting-chen opened this issue Jun 22, 2022 · 0 comments
Closed

TPC-H q7, q8, q9 run failed when using String for Date #987

weiting-chen opened this issue Jun 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@weiting-chen
Copy link
Collaborator

Describe the bug
q7: error: invalid static_cast from type ‘std::string’ {aka ‘std::__cxx11::basic_string’} to type ‘int64_t’ {aka ‘long int’}
182 | castDATE_nullsafe_18 = static_cast<int64_t>(sort_merge_join_0_output_col_3);

q8: error: invalid static_cast from type ‘std::string’ {aka ‘std::__cxx11::basic_string’} to type ‘int64_t’ {aka ‘long int’}
199 | castDATE_nullsafe_4 = static_cast<int64_t>(sort_merge_join_0_output_col_3);
|
compilation failed,

q9: error: invalid static_cast from type ‘std::string’ {aka ‘std::__cxx11::basic_string’} to type ‘int64_t’ {aka ‘long int’}
149 | castDATE_nullsafe_4 = static_cast<int64_t>(sort_merge_join_0_output_col_5);
| ^
compilation failed,

To Reproduce

  1. Set to use String for Date when generating data for TPC-H
  2. Run TPC-H q7, q8, q9 will reproduce this issue.

Expected behavior
We expect to run pass q7, q8, q9 without any issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants