lgbo-ustc opened a new issue, #9317:
URL: https://github.com/apache/incubator-gluten/issues/9317

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   [Expected behavior] and [actual behavior].
   ```sql
   select * from(
   select n_regionkey, n_nationkey, n_nationkey, row_number() over (partition 
by n_regionkey order by n_name) as rk
   from tpch_pq.nation
   ) where rk = 1
   ```
   ```
   Caused by: org.apache.gluten.exception.GlutenException: Names of tuple 
elements must be unique. Duplicate name: n_nationkey#2
   0. ./contrib/llvm-project/libcxx/include/__exception/exception.h:113: 
Poco::Exception::Exception(String const&, int) @ 0x0000000016e71212
   1. ./build/./src/Common/Exception.cpp:108: 
DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 
0x000000000d8fd119
   2. ./src/Common/Exception.h:112: 
DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000006fbedac
   3. ./src/Common/Exception.h:130: DB::Exception::Exception<String 
const&>(int, FormatStringHelperImpl<std::type_identity<String const&>::type>, 
String const&) @ 0x000000000702a2ab
   4. ./build/./src/DataTypes/DataTypeTuple.cpp:60: 
DB::DataTypeTuple::DataTypeTuple(std::vector<std::shared_ptr<DB::IDataType 
const>, std::allocator<std::shared_ptr<DB::IDataType const>>> const&, 
std::vector<String, std::allocator<String>> const&) @ 0x000000001080f38a
   5. ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:41: 
std::shared_ptr<DB::DataTypeTuple> 
std::allocate_shared[abi:ne190107]<DB::DataTypeTuple, 
std::allocator<DB::DataTypeTuple>, std::vector<std::shared_ptr<DB::IDataType 
const>, std::allocator<std::shared_ptr<DB::IDataType const>>> const&, 
std::vector<String, std::allocator<String>> const&, 
0>(std::allocator<DB::DataTypeTuple> const&, 
std::vector<std::shared_ptr<DB::IDataType const>, 
std::allocator<std::shared_ptr<DB::IDataType const>>> const&, 
std::vector<String, std::allocator<String>> const&) @ 0x000000000dd99222
   6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:851: 
local_engine::AggregateGroupLimitRelParser::prePrejectionForAggregateArguments(DB::QueryPlan&)
 @ 0x000000000dd9135e
   7. 
./build/./utils/extern-local-engine/Parser/RelParsers/GroupLimitRelParser.cpp:231:
 
local_engine::AggregateGroupLimitRelParser::parse(std::unique_ptr<DB::QueryPlan,
 std::default_delete<DB::QueryPlan>>, substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000dd8c735
   8. 
./build/./utils/extern-local-engine/Parser/RelParsers/GroupLimitRelParser.cpp:89:
 local_engine::GroupLimitRelParser::parse(std::unique_ptr<DB::QueryPlan, 
std::default_delete<DB::QueryPlan>>, substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000dd8bf10
   9. ./build/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:276: 
local_engine::SerializedPlanParser::parseOp(substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000dd67ff7
   10. ./build/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:233: 
local_engine::SerializedPlanParser::parseOp(substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000dd67a39
   11. ./build/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:206: 
local_engine::SerializedPlanParser::parse(substrait::Plan const&) @ 
0x000000000dd676cf
   12. ./build/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:220: 
local_engine::SerializedPlanParser::createExecutor(substrait::Plan const&) @ 
0x000000000dd68b0f
   13. ./build/./utils/extern-local-engine/local_engine_jni.cpp:271: 
Java_org_apache_gluten_vectorized_ExpressionEvaluatorJniWrapper_nativeCreateKernelWithIterator
 @ 0x0000000006fa346
   ```
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to