Comments (2)
@pramodsatya : I tried to repro this with the following code
TEST_F(AggregateWindowTest, fuzzerTestFailure) {
auto c0 = makeFlatVector<int64_t>({1, 1, 1, 1, 1, 1, 1, 1, 1, 1});
std::vector<int64_t> c1Vector = {
116046945367747275, 158974630665072867, 2244875474122244932,
3148654803738462351, 3550897651387022177, 5105548653791430694,
5842560344486019605, 6279807244011096880, 6461315255634262331,
7717907586427583831 };
std::vector<int64_t> c1rangeVector;
c1rangeVector.reserve(10);
for (auto c1 : c1Vector) {
std::cout << c1 - 2364390614705783022 << "\n";
c1rangeVector.push_back(c1 - 2364390614705783022);
}
auto c1 = makeFlatVector<int64_t>(c1Vector);
auto c2 = makeFlatVector<int64_t>(c1rangeVector);
auto c3 = makeFlatVector<double>(
{ 0.687331699533388, 0.8206623792648315, 0.8206623792648315,
0.2248822799883783, 0.9166490170173347, 0.38860476203262806,
0.38860476203262806, 0.8206623792648315, 0.10044080135412514,
0.9166490170173347 });
auto input = makeRowVector({c0, c1, c2, c3});
auto c4 = makeNullableFlatVector<double>(
{std::nullopt, std::nullopt, std::nullopt, 1.5079940787982196,
1.5079940787982196, 2.328656458063051, 2.5535387380514294,
3.470187755068764, 3.470187755068764, 3.858792517101392});
auto expected = makeRowVector({c0, c1, c2, c3, c4});
WindowTestBase::testWindowFunction(
{input},
"sum(c3)",
"partition by c0 order by c1 asc nulls last",
"range between unbounded preceding and c2 preceding",
expected);
}
This generates the k-range value column as
-2248343669338035747
-2205415984040710155
-119515140583538090
784264189032679329
1186507036681239155
2741158039085647672
3478169729780236583
3915416629305313858
4096924640928479309
5353516971721800809
and gets the correct results.
So I'm unsure of the values printed in the k1 column. Can you give more information if possible ?
from velox.
Looks like the k1 column was generated incorrectly and the issue is resolved now, thanks for pointing it out @aditi-pandit.
from velox.
Related Issues (20)
- Unable to build Velox on Ubuntu 20.04: Could not find a package configuration file provided by "double-conversion"
- clang-format:75:1: error: unknown key 'InsertNewlineAtEOF' HOT 3
- Make sure entire code base is properly formatted HOT 3
- is nessery to set non-reclaimable section before call orderby's isBlocked method HOT 4
- When we disabled async data cache, the amount of scanned data is incorrect HOT 1
- Patching DDB fails after changing git branches HOT 2
- Add CMake section to CODING_STYLE.md
- Spark mask function support HOT 1
- Support Status return type for callNullable function API HOT 2
- Improve Spark comparison functions performance by auto-vectorization HOT 3
- Equivalent of Presto Lookup Join in Velox HOT 7
- Docker compose fails with 'Failed to run install_mvfst .' HOT 7
- Flaky AggregationTest.maxSpillBytes HOT 1
- Support $data_sequence_number metadata column in Iceberg HOT 1
- Extend expression fuzzer to compare Velox result against Presto
- Ubuntu build failing when VELOX_ENABLE_PARQUET flag is enabled
- Add split_to_map Presto lambda function HOT 2
- Comparisons for values of logical types are not handled correctly throughout the library HOT 7
- Dead lock when adding child memory pool with already existing name HOT 1
- Tokenizer cannot parse column name with space in it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from velox.