Skip to content

Instantly share code, notes, and snippets.

@darrenfu
Created January 12, 2023 00:01
Show Gist options
  • Save darrenfu/921f20e8c4b2a783f4d2ddd339a7516b to your computer and use it in GitHub Desktop.
Save darrenfu/921f20e8c4b2a783f4d2ddd339a7516b to your computer and use it in GitHub Desktop.
DecodedVector::wrap() error
/Users/dofu/git/velox/cmake-build-debug/velox/vector/tests/velox_vector_test --gtest_filter=DecodedVectorTest.dictionaryOverConstant:DecodedVectorTest/*.dictionaryOverConstant:DecodedVectorTest.dictionaryOverConstant/*:*/DecodedVectorTest.dictionaryOverConstant/*:*/DecodedVectorTest/*.dictionaryOverConstant --gtest_color=no
Testing started at 4:00 PM ...
Running main() from /Users/dofu/git/velox/third_party/googletest/googletest/src/gtest_main.cc
WARNING: Logging before InitGoogleLogging() is written to STDERR
E20230111 16:00:40.975656 9289408 Exceptions.h:68] Line: /Users/dofu/git/velox/./velox/vector/DictionaryVector-inl.h:50, Function:setInternalState, Expression: rawIndices_[i] < dictionaryValues_->size() (10 vs. 10) Dictionary index must be less than base vector's size. Index: 5., Source: RUNTIME, ErrorCode: INVALID_STATE
E20230111 16:00:40.989362 9289408 Exceptions.h:68] Line: /Users/dofu/git/velox/./velox/vector/DictionaryVector-inl.h:50, Function:setInternalState, Expression: rawIndices_[i] < dictionaryValues_->size() (10 vs. 10) Dictionary index must be less than base vector's size. Index: 5., Source: RUNTIME, ErrorCode: INVALID_STATE
/Users/dofu/git/velox/velox/vector/tests/DecodedVectorTest.cpp:310: Failure
Expected: decoded.wrap(base, *dictionaryVector, selection.end()) doesn't throw an exception.
Actual: it throws facebook::velox::VeloxRuntimeError with description "Exception: VeloxRuntimeError
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: (10 vs. 10) Dictionary index must be less than base vector's size. Index: 5.
Retriable: False
Expression: rawIndices_[i] < dictionaryValues_->size()
Function: setInternalState
File: /Users/dofu/git/velox/./velox/vector/DictionaryVector-inl.h
Line: 50
Stack trace:
# 0
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
# 10
# 11
# 12
# 13
# 14
# 15
# 16
# 17
# 18
# 19
# 20
# 21
# 22
# 23
# 24
# 25
# 26
# 27
# 28
# 29
# 30
# 31
# 32
".
/Users/dofu/git/velox/velox/vector/tests/DecodedVectorTest.cpp:317: Failure
Expected: decoded.wrap(base, *dictionaryVector, dictionaryVector->size()) doesn't throw an exception.
Actual: it throws facebook::velox::VeloxRuntimeError with description "Exception: VeloxRuntimeError
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: (10 vs. 10) Dictionary index must be less than base vector's size. Index: 5.
Retriable: False
Expression: rawIndices_[i] < dictionaryValues_->size()
Function: setInternalState
File: /Users/dofu/git/velox/./velox/vector/DictionaryVector-inl.h
Line: 50
Stack trace:
# 0
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
# 10
# 11
# 12
# 13
# 14
# 15
# 16
# 17
# 18
# 19
# 20
# 21
# 22
# 23
# 24
# 25
# 26
# 27
# 28
# 29
# 30
# 31
# 32
".
Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment