wForget commented on PR #5591:
URL: https://github.com/apache/kyuubi/pull/5591#issuecomment-1811835864

   > Maybe you can test the scenario of generating multiple files
   
   The output seems to be in order even when outputting multiple files.
   
   ```
   set spark.sql.files.maxRecordsPerFile=10000;
   
   set kyuubi.operation.language=scala;
   
   spark.range(0, 1000000, 1, numPartitions = 10)
     .selectExpr("id", "cast(id as string) as name")
     .createOrReplaceTempView("wangzhen_test_20231115_tmp1")
   
   val df = spark.sql("select * from wangzhen_test_20231115_tmp1 order by id 
limit 100000");
   df.write.format("parquet").save("hdfs://XXX/result");
   
   spark.sql("set kyuubi.operation.language=sql");
   select * from `parquet`.`hdfs://XXX/result`;
   ```
   
   
![image](https://github.com/apache/kyuubi/assets/17894939/65dd77bf-86f3-4740-a9f1-3523db54e0f5)
   


-- 
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