taiyang-li opened a new issue, #9050:
URL: https://github.com/apache/incubator-gluten/issues/9050

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   ```
   org.apache.gluten.exception.GlutenException: Bad URI syntax
   0. ./contrib/llvm-project/libcxx/include/__exception/exception.h:106: 
Poco::Exception::Exception(String const&, String const&, int) @ 
0x0000000016b416f9
   1. ./build_gcc/./base/poco/Foundation/src/Exception.cpp:145: 
Poco::URISyntaxException::URISyntaxException(String const&, String const&, int) 
@ 0x0000000016b4f009
   2. ./build_gcc/./base/poco/Foundation/src/URI.cpp:666: 
Poco::URI::decode(String const&, String&, bool) @ 0x0000000016b95cba
   3. 
./build_gcc/./utils/extern-local-engine/Storages/SubstraitSource/FormatFile.cpp:119:
 local_engine::FormatFile::FormatFile(std::shared_ptr<DB::Context const>, 
substrait::ReadRel_LocalFiles_FileOrFiles const&, 
std::shared_ptr<local_engine::ReadBufferBuilder> const&) @ 0x000000000d9e0612
   4. 
./build_gcc/./utils/extern-local-engine/Storages/SubstraitSource/ORCFormatFile.cpp:35:
 local_engine::ORCFormatFile::ORCFormatFile(std::shared_ptr<DB::Context const>, 
substrait::ReadRel_LocalFiles_FileOrFiles const&, 
std::shared_ptr<local_engine::ReadBufferBuilder>) @ 0x000000000da50df5
   5. ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:41: 
local_engine::FormatFileUtil::createFile(std::shared_ptr<DB::Context const>, 
std::shared_ptr<local_engine::ReadBufferBuilder>, 
substrait::ReadRel_LocalFiles_FileOrFiles const&) @ 0x000000000d9e1bd9
   6. 
./build_gcc/./utils/extern-local-engine/Storages/SubstraitSource/SubstraitFileSource.cpp:68:
 
local_engine::SubstraitFileSource::SubstraitFileSource(std::shared_ptr<DB::Context
 const> const&, DB::Block const&, substrait::ReadRel_LocalFiles const&) @ 
0x000000000d9d980f
   7. ./contrib/llvm-project/libcxx/include/__memory/construct_at.h:41: 
local_engine::ReadRelParser::parseReadRelWithLocalFile(substrait::ReadRel 
const&) @ 0x000000000d75fe6d
   8. 
./build_gcc/./utils/extern-local-engine/Parser/RelParsers/ReadRelParser.cpp:86: 
local_engine::ReadRelParser::parse(std::unique_ptr<DB::QueryPlan, 
std::default_delete<DB::QueryPlan>>, substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000d75d319
   9. ./utils/extern-local-engine/Parser/RelParsers/ReadRelParser.h:34: 
local_engine::ReadRelParser::parse(std::vector<std::unique_ptr<DB::QueryPlan, 
std::default_delete<DB::QueryPlan>>, 
std::allocator<std::unique_ptr<DB::QueryPlan, 
std::default_delete<DB::QueryPlan>>>>&, substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000d760ad6
   10. 
./build_gcc/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:271: 
local_engine::SerializedPlanParser::parseOp(substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000d73d0f8
   11. 
./build_gcc/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:232: 
local_engine::SerializedPlanParser::parseOp(substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000d73cc28
   12. 
./build_gcc/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:232: 
local_engine::SerializedPlanParser::parseOp(substrait::Rel const&, 
std::list<substrait::Rel const*, std::allocator<substrait::Rel const*>>&) @ 
0x000000000d73cc28
   13. 
./build_gcc/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:205: 
local_engine::SerializedPlanParser::parse(substrait::Plan const&) @ 
0x000000000d73c90f
   14. 
./build_gcc/./utils/extern-local-engine/Parser/SerializedPlanParser.cpp:219: 
local_engine::SerializedPlanParser::createExecutor(substrait::Plan const&) @ 
0x000000000d73d9ef
   15. ./build_gcc/./utils/extern-local-engine/local_engine_jni.cpp:265: 
Java_org_apache_gluten_vectorized_ExpressionEvaluatorJniWrapper_nativeCreateKernelWithIterator
 @ 0x0000000006ddc5c8
   
        at 
org.apache.gluten.vectorized.ExpressionEvaluatorJniWrapper.nativeCreateKernelWithIterator(Native
 Method)
        at 
org.apache.gluten.vectorized.CHNativeExpressionEvaluator.createKernelWithBatchIterator(CHNativeExpressionEvaluator.java:70)
        at 
org.apache.gluten.backendsapi.clickhouse.CHIteratorApi.createNativeIterator(CHIteratorApi.scala:91)
        at 
org.apache.gluten.backendsapi.clickhouse.CHIteratorApi.genFirstStageIterator(CHIteratorApi.scala:293)
        at 
org.apache.gluten.execution.GlutenWholeStageColumnarRDD.$anonfun$compute$1(GlutenWholeStageColumnarRDD.scala:76)
        at org.apache.gluten.utils.Arm$.withResource(Arm.scala:25)
        at 
org.apache.gluten.metrics.GlutenTimeMetric$.millis(GlutenTimeMetric.scala:37)
        at 
org.apache.gluten.execution.GlutenWholeStageColumnarRDD.compute(GlutenWholeStageColumnarRDD.scala:65)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:365)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:329)
        at 
org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:365)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:329)
        at 
org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:59)
        at 
org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:99)
        at 
org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:52)
        at org.apache.spark.scheduler.Task.run(Task.scala:136)
        at 
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:548)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1504)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:551)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   ```
   
   
   ```
   {
               "uriFile": 
"hdfs://bigocluster/data/hive/report_tb.db/bigolive_antispam_trigger_fraud_strategy_reason/day=%2525s/strategy_id=13/part-00000-3ea2efb4-2008-4e59-9e5e-b2c30e3aabcf-c000",
 
               "partitionIndex": "14", 
               "length": "1316445", 
               "orc": { }, 
               "partitionColumns": [
                   {
                       "key": "strategy_id", 
                       "value": "13"
                   }, 
                   {
                       "key": "day", 
                       "value": "%s"
                   }
               ], 
               "schema": { }, 
               "metadataColumns": [
                   {
                       "key": "input_file_name", 
                       "value": 
"hdfs://bigocluster/data/hive/report_tb.db/bigolive_antispam_trigger_fraud_strategy_reason/day=%2525s/strategy_id=13/part-00000-3ea2efb4-2008-4e59-9e5e-b2c30e3aabcf-c000"
                   }, 
                   {
                       "key": "input_file_block_length", 
                       "value": "1316445"
                   }, 
                   {
                       "key": "input_file_block_start", 
                       "value": "0"
                   }
               ], 
               "properties": {
                   "fileSize": "1316445", 
                   "modificationTime": "1618813096791"
               }
           }
   ```
   
   ### 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