BlakeOrth commented on PR #17266:
URL: https://github.com/apache/datafusion/pull/17266#issuecomment-3268395582

   > Also, BTW tried it out but it doesn't seem to be working anymore
   
   @alamb I've found the bug and fixed this behavior. Although this is one of 
those scenarios where I'm somewhat questioning how it ever worked correctly in 
terms of switching modes using commands. Regardless, I'm glad you chose to run 
a functional test case that I clearly had not run! The issue seems to have been 
with the initial command to change the state. Curiously, once the profiling had 
been enabled one time the changes thereafter seemed to work as expected. With 
the bug fix, the initial command now seems to be working though.
   
   ```console
   /datafusion-cli$ ../target/debug/datafusion-cli
   ```
   
   ```sql
   DataFusion CLI v49.0.2
   > \object_store_profiling trace
   ObjectStore Profile mode set to Trace
   > CREATE EXTERNAL TABLE nyc_taxi_rides
   STORED AS PARQUET LOCATION 
's3://altinity-clickhouse-data/nyc_taxi_rides/data/tripdata_parquet/';
   0 row(s) fetched.
   Elapsed 1.906 seconds.
   
   Object Store Profiling
   2025-09-08T23:55:35.057244770+00:00 operation=List 
path=nyc_taxi_rides/data/tripdata_parquet
   List Summary:
     count: 1
   
   2025-09-08T23:55:35.395591891+00:00 operation=List 
path=nyc_taxi_rides/data/tripdata_parquet
   2025-09-08T23:55:35.630754482+00:00 operation=Get duration=0.100976s size=8 
range: bytes=222192975-222192982 
path=nyc_taxi_rides/data/tripdata_parquet/data-200901.parquet
   2025-09-08T23:55:35.731796892+00:00 operation=Get duration=0.105280s 
size=38976 range: bytes=222153999-222192974 
path=nyc_taxi_rides/data/tripdata_parquet/data-200901.parquet
   2025-09-08T23:55:35.635551741+00:00 operation=Get duration=0.220758s size=8 
range: bytes=217303101-217303108 
path=nyc_taxi_rides/data/tripdata_parquet/data-200908.parquet
   2025-09-08T23:55:35.632923076+00:00 operation=Get duration=0.238810s size=8 
range: bytes=225659957-225659964 
path=nyc_taxi_rides/data/tripdata_parquet/data-200904.parquet
   2025-09-08T23:55:35.633575925+00:00 operation=Get duration=0.240542s size=8 
range: bytes=232847298-232847305 
path=nyc_taxi_rides/data/tripdata_parquet/data-200905.parquet
   2025-09-08T23:55:35.638022172+00:00 operation=Get duration=0.237329s size=8 
range: bytes=235166917-235166924 
path=nyc_taxi_rides/data/tripdata_parquet/data-201001.parquet
   2025-09-08T23:55:35.634262563+00:00 operation=Get duration=0.244533s size=8 
range: bytes=224226567-224226574 
path=nyc_taxi_rides/data/tripdata_parquet/data-200906.parquet
   
   . . . Truncated for brevity . . .
   
   2025-09-08T23:55:36.814991494+00:00 operation=Get duration=0.073694s 
size=19872 range: bytes=214807880-214827751 
path=nyc_taxi_rides/data/tripdata_parquet/data-201603.parquet
   2025-09-08T23:55:36.774456617+00:00 operation=Get duration=0.124367s 
size=15508 range: bytes=158722835-158738342 
path=nyc_taxi_rides/data/tripdata_parquet/data-201612.parquet
   2025-09-08T23:55:36.837998603+00:00 operation=Get duration=0.064300s 
size=18219 range: bytes=200688011-200706229 
path=nyc_taxi_rides/data/tripdata_parquet/data-201602.parquet
   List Summary:
     count: 1
   
   Get Summary:
     count: 288
     duration min: 0.057396s
     duration max: 0.357809s
     duration avg: 0.108023s
     size min: 8 B
     size max: 44247 B
     size avg: 18870 B
     size sum: 5434702 B
   
   >
   ```


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to