-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamps queried from InfluxDB 3 Core via JDBC Driver are inconsistent with those inserted #25983
Comments
@linghengqian - 👋 thanks for the detailed write-up! How are you certain that the row in the query result that you are asserting against is the row that was written in the previous step of the unit test? The discrepancy in the timestamps is quite large ( Perhaps you could try writing som unique value into a tag or field column, using a UUID, or something that is unique to the test run, and then include a |
private final Instant magicTime = Instant.now().minusSeconds(10);
@Container
private final GenericContainer<?> container = new GenericContainer<>("quay.io/influxdb/influxdb3-core:911ba92ab4133e75fe2a420e16ed9cb4cf32196f")
.withCommand("serve --node-id local01 --object-store file --data-dir /home/influxdb3/.influxdb3")
.withExposedPorts(8181);
|
Ah, if that is the case, then I apologize, I misunderstood the code / description and did not realize each test is running an isolated container. So, the You might be able to try adding some more verbose logs to the server output with your
And then, if possible, share the log output here. There may be some clues there. |
container log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘2025-02-10T16:06:12.056635Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=70f8770e-2190-4526-af2b-ebe9777c2c60 num_cpus=16
2025-02-10T16:06:12.057000Z INFO influxdb3_clap_blocks::object_store: Object Store db_dir="/home/influxdb3/.influxdb3" object_store_type="Directory"
2025-02-10T16:06:12.057161Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-10T16:06:12.106995Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="a8f06457-51f6-406e-b283-ce917f2b96d1"
2025-02-10T16:06:12.108637Z INFO influxdb3::commands::serve: catalog initialized instance_id="a8f06457-51f6-406e-b283-ce917f2b96d1"
2025-02-10T16:06:12.112673Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-10T16:06:12.112746Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-10T16:06:12.322697Z INFO influxdb3_server: startup time: 268ms address=0.0.0.0:8181
2025-02-10T16:06:12.923305Z INFO influxdb3_server::http: write_lp to mydb
2025-02-10T16:06:12.924089Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-10T16:06:13.114607Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739203560648223645 max_timestamp_ns=1739203572924081045 wal_file_number=1
2025-02-10T16:06:13.238529Z INFO iox_query::query_log: query when="received" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 success=false running=true cancelled=false
2025-02-10T16:06:13.238607Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=select time,location,value from home order by time desc limit 10 trace="" variant="sql"
2025-02-10T16:06:13.240461Z INFO iox_query::query_log: query when="planned" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001933037 success=false running=true cancelled=false
2025-02-10T16:06:13.240830Z INFO iox_query::query_log: query when="permit" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001933037 permit_duration_secs=0.000373008 success=false running=true cancelled=false
2025-02-10T16:06:13.241211Z INFO iox_query::query_log: query when="success" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001933037 permit_duration_secs=0.000373008 execute_duration_secs=0.0003781 end2end_duration_secs=0.002687442 compute_duration_secs=0.000217481 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-10T16:06:13.868898Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-10T16:06:13.895177Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-10T16:06:13.906237Z INFO iox_query::query_log: query when="received" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 success=false running=true cancelled=false
2025-02-10T16:06:13.906279Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-10T16:06:13.907629Z INFO iox_query::query_log: query when="planned" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001391512 success=false running=true cancelled=false
2025-02-10T16:06:13.907909Z INFO iox_query::query_log: query when="permit" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001391512 permit_duration_secs=0.000282309 success=false running=true cancelled=false
2025-02-10T16:06:13.908135Z INFO iox_query::query_log: query when="success" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001391512 permit_duration_secs=0.000282309 execute_duration_secs=0.000221499 end2end_duration_secs=0.001899817 compute_duration_secs=8.431e-5 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false Unit test complete error log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘$ ./mvnw -T 1C -Dtest=TimeDifferenceTest clean test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 16
[INFO]
[INFO] ----------< io.github.linghengqian:influxdb-3-core-jdbc-test >----------
[INFO] Building influxdb-3-core-jdbc-test 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ influxdb-3-core-jdbc-test ---
[INFO] Deleting /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ influxdb-3-core-jdbc-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ influxdb-3-core-jdbc-test ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 7 source files with javac [debug target 21] to target/test-classes
[INFO]
[INFO] --- surefire:3.5.2:test (default-test) @ influxdb-3-core-jdbc-test ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.linghengqian.TimeDifferenceTest
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2月 11, 2025 12:06:13 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator <clinit>
信息: Debug mode disabled. Enable with the VM option -Darrow.memory.debug.allocator=true.
2月 11, 2025 12:06:13 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.DefaultAllocationManagerOption getDefaultAllocationManagerFactory
信息: allocation manager type not specified, using netty as the default type
2月 11, 2025 12:06:13 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.CheckAllocator reportResult
信息: Using DefaultAllocationManager at memory/netty/DefaultAllocationManagerFactory.class
2025-02-10T16:06:12.056635Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=70f8770e-2190-4526-af2b-ebe9777c2c60 num_cpus=16
2025-02-10T16:06:12.057000Z INFO influxdb3_clap_blocks::object_store: Object Store db_dir="/home/influxdb3/.influxdb3" object_store_type="Directory"
2025-02-10T16:06:12.057161Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-10T16:06:12.106995Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="a8f06457-51f6-406e-b283-ce917f2b96d1"
2025-02-10T16:06:12.108637Z INFO influxdb3::commands::serve: catalog initialized instance_id="a8f06457-51f6-406e-b283-ce917f2b96d1"
2025-02-10T16:06:12.112673Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-10T16:06:12.112746Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-10T16:06:12.322697Z INFO influxdb3_server: startup time: 268ms address=0.0.0.0:8181
2025-02-10T16:06:12.923305Z INFO influxdb3_server::http: write_lp to mydb
2025-02-10T16:06:12.924089Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-10T16:06:13.114607Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739203560648223645 max_timestamp_ns=1739203572924081045 wal_file_number=1
2025-02-10T16:06:13.238529Z INFO iox_query::query_log: query when="received" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 success=false running=true cancelled=false
2025-02-10T16:06:13.238607Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=select time,location,value from home order by time desc limit 10 trace="" variant="sql"
2025-02-10T16:06:13.240461Z INFO iox_query::query_log: query when="planned" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001933037 success=false running=true cancelled=false
2025-02-10T16:06:13.240830Z INFO iox_query::query_log: query when="permit" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001933037 permit_duration_secs=0.000373008 success=false running=true cancelled=false
2025-02-10T16:06:13.241211Z INFO iox_query::query_log: query when="success" id=e4d07186-bcc0-4b3e-826b-de5c2edbf2be namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-10T16:06:13.238523555+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001933037 permit_duration_secs=0.000373008 execute_duration_secs=0.0003781 end2end_duration_secs=0.002687442 compute_duration_secs=0.000217481 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-10T16:06:13.868898Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-10T16:06:13.895177Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-10T16:06:13.906237Z INFO iox_query::query_log: query when="received" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 success=false running=true cancelled=false
2025-02-10T16:06:13.906279Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-10T16:06:13.907629Z INFO iox_query::query_log: query when="planned" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001391512 success=false running=true cancelled=false
2025-02-10T16:06:13.907909Z INFO iox_query::query_log: query when="permit" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001391512 permit_duration_secs=0.000282309 success=false running=true cancelled=false
2025-02-10T16:06:13.908135Z INFO iox_query::query_log: query when="success" id=666dca88-db5d-4b9e-986c-cf48a70b0082 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-10T16:06:13.906234738+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001391512 permit_duration_secs=0.000282309 execute_duration_secs=0.000221499 end2end_duration_secs=0.001899817 compute_duration_secs=8.431e-5 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.996 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 3.932 s <<< FAILURE!
java.lang.AssertionError:
Expected: is <1739203560648L>
but: was <1739145960648L>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:84)
at io.github.linghengqian.TimeDifferenceTest.test(TimeDifferenceTest.java:47)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TimeDifferenceTest.test:47->queryDataByJdbcDriver:84
Expected: is <1739203560648L>
but: was <1739145960648L>
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.104 s (Wall Clock)
[INFO] Finished at: 2025-02-11T00:06:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test (default-test) on project influxdb-3-core-jdbc-test: There are test failures.
[ERROR]
[ERROR] See /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
|
@linghengqian One thing I notice is that you have comparisons in milliseconds, but the server stores timestamps in nanoseconds, especially if the write to the DB is not in nanoseconds. We try to automatically figure out what precision you sent the timestamp in as. There might be some discrepancy there. If you want to be really sure that they do not share state between invocations I would use the arguments |
container log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘2025-02-11T03:33:25.968826Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=e90c1822-74d7-409d-a2c4-7ce340f7ca69 num_cpus=16
2025-02-11T03:33:25.969126Z INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-11T03:33:25.969190Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-11T03:33:26.007438Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="df4e3d52-98f3-4eb6-a9b6-c1e766a33bb5"
2025-02-11T03:33:26.007562Z INFO influxdb3::commands::serve: catalog initialized instance_id="df4e3d52-98f3-4eb6-a9b6-c1e766a33bb5"
2025-02-11T03:33:26.007650Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-11T03:33:26.007673Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-11T03:33:26.193328Z INFO influxdb3_server: startup time: 225ms address=0.0.0.0:8181
2025-02-11T03:33:26.715179Z INFO influxdb3_server::http: write_lp to mydb
2025-02-11T03:33:26.716147Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-11T03:33:27.008726Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739244795878445031 max_timestamp_ns=1739244806716134380 wal_file_number=1
2025-02-11T03:33:27.159852Z INFO iox_query::query_log: query when="received" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 success=false running=true cancelled=false
2025-02-11T03:33:27.159907Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=select time,location,value from home order by time desc limit 10 trace="" variant="sql"
2025-02-11T03:33:27.161973Z INFO iox_query::query_log: query when="planned" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002120763 success=false running=true cancelled=false
2025-02-11T03:33:27.162379Z INFO iox_query::query_log: query when="permit" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002120763 permit_duration_secs=0.000410405 success=false running=true cancelled=false
2025-02-11T03:33:27.162693Z INFO iox_query::query_log: query when="success" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002120763 permit_duration_secs=0.000410405 execute_duration_secs=0.000309577 end2end_duration_secs=0.00284504 compute_duration_secs=0.000159851 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-11T03:33:27.899649Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-11T03:33:27.935979Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-11T03:33:27.952839Z INFO iox_query::query_log: query when="received" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 success=false running=true cancelled=false
2025-02-11T03:33:27.952889Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-11T03:33:27.954227Z INFO iox_query::query_log: query when="planned" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001389508 success=false running=true cancelled=false
2025-02-11T03:33:27.954522Z INFO iox_query::query_log: query when="permit" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001389508 permit_duration_secs=0.000298323 success=false running=true cancelled=false
2025-02-11T03:33:27.954812Z INFO iox_query::query_log: query when="success" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001389508 permit_duration_secs=0.000298323 execute_duration_secs=0.000286016 end2end_duration_secs=0.001977802 compute_duration_secs=8.0481e-5 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false Unit test complete error log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘$ ./mvnw -T 1C -Dtest=TimeDifferenceTest clean test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 16
[INFO]
[INFO] ----------< io.github.linghengqian:influxdb-3-core-jdbc-test >----------
[INFO] Building influxdb-3-core-jdbc-test 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ influxdb-3-core-jdbc-test ---
[INFO] Deleting /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ influxdb-3-core-jdbc-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ influxdb-3-core-jdbc-test ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 7 source files with javac [debug target 21] to target/test-classes
[INFO]
[INFO] --- surefire:3.5.2:test (default-test) @ influxdb-3-core-jdbc-test ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.linghengqian.TimeDifferenceTest
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2月 11, 2025 11:33:27 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator <clinit>
信息: Debug mode disabled. Enable with the VM option -Darrow.memory.debug.allocator=true.
2月 11, 2025 11:33:27 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.DefaultAllocationManagerOption getDefaultAllocationManagerFactory
信息: allocation manager type not specified, using netty as the default type
2月 11, 2025 11:33:27 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.CheckAllocator reportResult
信息: Using DefaultAllocationManager at memory/netty/DefaultAllocationManagerFactory.class
2025-02-11T03:33:25.968826Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=e90c1822-74d7-409d-a2c4-7ce340f7ca69 num_cpus=16
2025-02-11T03:33:25.969126Z INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-11T03:33:25.969190Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-11T03:33:26.007438Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="df4e3d52-98f3-4eb6-a9b6-c1e766a33bb5"
2025-02-11T03:33:26.007562Z INFO influxdb3::commands::serve: catalog initialized instance_id="df4e3d52-98f3-4eb6-a9b6-c1e766a33bb5"
2025-02-11T03:33:26.007650Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-11T03:33:26.007673Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-11T03:33:26.193328Z INFO influxdb3_server: startup time: 225ms address=0.0.0.0:8181
2025-02-11T03:33:26.715179Z INFO influxdb3_server::http: write_lp to mydb
2025-02-11T03:33:26.716147Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-11T03:33:27.008726Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739244795878445031 max_timestamp_ns=1739244806716134380 wal_file_number=1
2025-02-11T03:33:27.159852Z INFO iox_query::query_log: query when="received" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 success=false running=true cancelled=false
2025-02-11T03:33:27.159907Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=select time,location,value from home order by time desc limit 10 trace="" variant="sql"
2025-02-11T03:33:27.161973Z INFO iox_query::query_log: query when="planned" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002120763 success=false running=true cancelled=false
2025-02-11T03:33:27.162379Z INFO iox_query::query_log: query when="permit" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002120763 permit_duration_secs=0.000410405 success=false running=true cancelled=false
2025-02-11T03:33:27.162693Z INFO iox_query::query_log: query when="success" id=4ebda39c-cb6f-4fff-b094-86a99b4e4825 namespace_id=0 namespace_name="influxdb3 oss" query_type="sql" query_text=select time,location,value from home order by time desc limit 10 query_params=Params { } issue_time=2025-02-11T03:33:27.159847435+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002120763 permit_duration_secs=0.000410405 execute_duration_secs=0.000309577 end2end_duration_secs=0.00284504 compute_duration_secs=0.000159851 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-11T03:33:27.899649Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-11T03:33:27.935979Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-11T03:33:27.952839Z INFO iox_query::query_log: query when="received" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 success=false running=true cancelled=false
2025-02-11T03:33:27.952889Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-11T03:33:27.954227Z INFO iox_query::query_log: query when="planned" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001389508 success=false running=true cancelled=false
2025-02-11T03:33:27.954522Z INFO iox_query::query_log: query when="permit" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001389508 permit_duration_secs=0.000298323 success=false running=true cancelled=false
2025-02-11T03:33:27.954812Z INFO iox_query::query_log: query when="success" id=e383ae50-10c0-4d0c-a2c7-0ca289c7cae9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-11T03:33:27.952833653+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001389508 permit_duration_secs=0.000298323 execute_duration_secs=0.000286016 end2end_duration_secs=0.001977802 compute_duration_secs=8.0481e-5 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.705 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 2.645 s <<< FAILURE!
java.lang.AssertionError:
Expected: is <1739244795878L>
but: was <1739187195878L>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:84)
at io.github.linghengqian.TimeDifferenceTest.test(TimeDifferenceTest.java:47)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TimeDifferenceTest.test:47->queryDataByJdbcDriver:84
Expected: is <1739244795878L>
but: was <1739187195878L>
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.062 s (Wall Clock)
[INFO] Finished at: 2025-02-11T11:33:28+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test (default-test) on project influxdb-3-core-jdbc-test: There are test failures.
[ERROR]
[ERROR] See /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException |
@linghengqian a couple more things that you might be able to try:
Otherwise, the timestamp that you are getting is consistently 16 hours off of the expectation. Maybe there are some UTC to local conversions happening that are responsible for the offset. I'm not 100% sure of that, since you aren't doing any casting of the query FWIW One thing I noticed was that the log line for the WAL flush:
Specifically,
It may be helpful to look at the actual query result to see what raw timestamps are there. |
container log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘2025-02-12T05:55:14.430988Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=891502ff-37e2-4cf2-98f0-39f648b230a2 num_cpus=16
2025-02-12T05:55:14.431059Z DEBUG influxdb3::commands::serve: build configuration build_malloc_conf=
2025-02-12T05:55:14.431304Z INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-12T05:55:14.431407Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-12T05:55:14.431448Z DEBUG influxdb3_cache::parquet_cache: >>> test: background cache pruning running
2025-02-12T05:55:14.469263Z DEBUG datafusion_execution::memory_pool::pool: Created new GreedyMemoryPool(pool_size=8589934592)
2025-02-12T05:55:14.469988Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="06514cd6-7761-4a13-8395-f6a218ec32e3"
2025-02-12T05:55:14.470116Z INFO influxdb3::commands::serve: catalog initialized instance_id="06514cd6-7761-4a13-8395-f6a218ec32e3"
2025-02-12T05:55:14.470208Z DEBUG influxdb3_wal::object_store: >>> replaying
2025-02-12T05:55:14.470248Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-12T05:55:14.470285Z DEBUG influxdb3::commands::serve: setting up background buffer checker mem_threshold_bytes=11441882726
2025-02-12T05:55:14.470341Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-12T05:55:14.470377Z DEBUG influxdb3::commands::serve: Initializing TelemetryStore with upload enabled for https://telemetry.v3.influxdata.com.
2025-02-12T05:55:14.470383Z DEBUG influxdb3_telemetry::store: Initializing telemetry store instance_id="06514cd6-7761-4a13-8395-f6a218ec32e3" os="linux" influx_version="influxdb3-0.1.0" storage_type="memory" cores=16
2025-02-12T05:55:14.471609Z DEBUG influxdb3_write::write_buffer: checking buffer size and snapshotting current_buffer_size_bytes=0 memory_threshold_bytes=11441882726
2025-02-12T05:55:14.478750Z DEBUG influxdb3_telemetry::store: Snapshot write size in bytes min=0 max=0 avg=0
2025-02-12T05:55:14.478806Z DEBUG influxdb3_telemetry::sender: trying to send data to telemetry server telemetry=TelemetryPayload { os: "linux", version: "influxdb3-0.1.0", storage_type: "memory", instance_id: "06514cd6-7761-4a13-8395-f6a218ec32e3", cores: 16, product_type: "Core", uptime_secs: 0, cpu_utilization_percent_min_1m: 0.0, cpu_utilization_percent_max_1m: 0.0, cpu_utilization_percent_avg_1m: 0.0, memory_used_mb_min_1m: 0, memory_used_mb_max_1m: 0, memory_used_mb_avg_1m: 0, write_requests_min_1m: 0, write_requests_max_1m: 0, write_requests_avg_1m: 0, write_requests_sum_1h: 0, write_lines_min_1m: 0, write_lines_max_1m: 0, write_lines_avg_1m: 0, write_lines_sum_1h: 0, write_mb_min_1m: 0, write_mb_max_1m: 0, write_mb_avg_1m: 0, write_mb_sum_1h: 0, query_requests_min_1m: 0, query_requests_max_1m: 0, query_requests_avg_1m: 0, query_requests_sum_1h: 0, parquet_file_count: 0, parquet_file_size_mb: 0.0, parquet_row_count: 0 }
2025-02-12T05:55:14.480053Z DEBUG reqwest::connect: starting new connection: https://telemetry.v3.influxdata.com/
2025-02-12T05:55:14.491478Z DEBUG hyper::client::connect::dns: resolving host="telemetry.v3.influxdata.com"
2025-02-12T05:55:14.501538Z DEBUG hyper::client::connect::http: connecting to 172.29.4.16:443
2025-02-12T05:55:14.502266Z DEBUG hyper::client::connect::http: connected to 172.29.4.16:443
2025-02-12T05:55:14.502354Z DEBUG rustls::client::hs: No cached session for DnsName("telemetry.v3.influxdata.com")
2025-02-12T05:55:14.502460Z DEBUG rustls::client::hs: Not resuming any session
2025-02-12T05:55:14.519322Z DEBUG influxdb3_telemetry::sampler: trying to sample data for cpu/memory cpu_used=0.0 mem_used=288149504
2025-02-12T05:55:14.519375Z DEBUG influxdb3_telemetry::store: Rolling up writes/reads events_summary=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-12T05:55:14.519385Z DEBUG influxdb3_telemetry::bucket: Resetting write bucket write_bucket=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-12T05:55:14.669578Z INFO influxdb3_server: startup time: 239ms address=0.0.0.0:8181
2025-02-12T05:55:14.873971Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_128_GCM_SHA256
2025-02-12T05:55:14.874069Z DEBUG rustls::client::tls13: Not resuming
2025-02-12T05:55:14.874198Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [ServerNameAck, Protocols([ProtocolName(6832)])]
2025-02-12T05:55:14.874242Z DEBUG rustls::client::hs: ALPN protocol is Some(b"h2")
2025-02-12T05:55:14.874700Z DEBUG hyper::client::pool: pooling idle connection for ("https", telemetry.v3.influxdata.com)
2025-02-12T05:55:15.292424Z DEBUG influxdb3_telemetry::sender: Successfully sent telemetry data to server to endpoint="https://telemetry.v3.influxdata.com/telem"
2025-02-12T05:55:15.312911Z DEBUG influxdb3_server::http: Processing request request=Request { method: POST, uri: /api/v2/write?bucket=mydb&precision=ns, version: HTTP/1.1, headers: {"connection": "Upgrade, HTTP2-Settings", "content-length": "52", "host": "localhost:32775", "http2-settings": "AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA", "upgrade": "h2c", "content-type": "text/plain; charset=utf-8", "user-agent": "influxdb3-java/1.0.0"}, body: Body(Streaming) }
2025-02-12T05:55:15.312983Z INFO influxdb3_server::http: write_lp to mydb
2025-02-12T05:55:15.314683Z DEBUG influxdb3_write::write_buffer: write_lp to mydb in writebuffer
2025-02-12T05:55:15.314732Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-12T05:55:15.314809Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739339715314678956, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-12T05:55:15.471940Z DEBUG influxdb3_wal::snapshot_tracker: >>> wal periods and snapshots wal_periods=[WalPeriod { wal_file_number: WalFileSequenceNumber(1), min_time: Timestamp(1739339703157086797), max_time: Timestamp(1739339715314678956) }] wal_periods_len=1 num_snapshots_after=900
2025-02-12T05:55:15.472011Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739339703157086797 max_timestamp_ns=1739339715314678956 wal_file_number=1
2025-02-12T05:55:15.472091Z DEBUG influxdb3_wal::object_store: notify sent to buffer for wal file 1
2025-02-12T05:55:15.472100Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739339715314678956, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-12T05:55:15.472221Z DEBUG influxdb3_server::http: Successfully processed request response=Response { status: 204, version: HTTP/1.1, headers: {}, body: Body(Empty) }
2025-02-12T05:55:16.124245Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10 trace=
2025-02-12T05:55:16.124647Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.124678Z DEBUG flightsql::planner: Creating prepared statement query=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.124684Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.124785Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124818Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.124854Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124864Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124874Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124879Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.124880Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124882Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124884Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124886Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.124888Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124918Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124944Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124952Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.124956Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124958Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124961Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124964Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.124967Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124969Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.125051Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.166821Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.167179Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.167216Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.167277Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167305Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.167312Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167318Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167323Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167327Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.167330Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167331Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167333Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167335Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.167336Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167342Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167353Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167373Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.167378Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167380Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167383Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167386Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.167389Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167391Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167409Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.167615Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.181874Z INFO iox_query::query_log: query when="received" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 success=false running=true cancelled=false
2025-02-12T05:55:16.181933Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-12T05:55:16.182193Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.182228Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.182236Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.182290Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182316Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.182323Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182329Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182333Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182337Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.182339Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182340Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182342Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182344Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.182345Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182349Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182360Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182379Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.182383Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182386Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182389Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182391Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.182394Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182396Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182414Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.182565Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Analyze [plan_type:Utf8, plan:Utf8]
Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-12T05:55:16.182698Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182745Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182777Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182835Z DEBUG datafusion_optimizer::utils: type_coercion:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182871Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182918Z DEBUG datafusion_optimizer::utils: extract_sleep:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182959Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182969Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182972Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms
2025-02-12T05:55:16.182991Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183039Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-12T05:55:16.183108Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183151Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.183163Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-12T05:55:16.183170Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-12T05:55:16.183178Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-12T05:55:16.183182Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-12T05:55:16.183187Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-12T05:55:16.183192Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-12T05:55:16.183197Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-12T05:55:16.183201Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-12T05:55:16.183234Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.183240Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-12T05:55:16.183263Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-12T05:55:16.183269Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-12T05:55:16.183277Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-12T05:55:16.183281Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-12T05:55:16.183285Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183293Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-12T05:55:16.183297Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-12T05:55:16.183309Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183342Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.183350Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.183354Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-12T05:55:16.183381Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183432Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-12T05:55:16.183436Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183444Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183449Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-12T05:55:16.183463Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183477Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.183499Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-12T05:55:16.183506Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-12T05:55:16.183511Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-12T05:55:16.183514Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-12T05:55:16.183517Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-12T05:55:16.183521Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-12T05:55:16.183524Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-12T05:55:16.183527Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-12T05:55:16.183531Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.183567Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-12T05:55:16.183572Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-12T05:55:16.183576Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-12T05:55:16.183579Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-12T05:55:16.183582Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-12T05:55:16.183586Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183592Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-12T05:55:16.183595Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-12T05:55:16.183605Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183617Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.183621Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.183624Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-12T05:55:16.183636Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183659Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-12T05:55:16.183663Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183671Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183675Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-12T05:55:16.183685Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183716Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.183721Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-12T05:55:16.183725Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-12T05:55:16.183729Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-12T05:55:16.183732Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-12T05:55:16.183734Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-12T05:55:16.183738Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-12T05:55:16.183741Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-12T05:55:16.183743Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-12T05:55:16.183747Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.183749Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-12T05:55:16.183753Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-12T05:55:16.183755Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-12T05:55:16.183758Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-12T05:55:16.183761Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-12T05:55:16.183769Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-12T05:55:16.183772Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-12T05:55:16.183775Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-12T05:55:16.183803Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183821Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.183825Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.183828Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-12T05:55:16.183840Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183863Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-12T05:55:16.183868Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183875Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-12T05:55:16.183877Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183880Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms
2025-02-12T05:55:16.183902Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-12T05:55:16.183938Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-12T05:55:16.184019Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-12T05:55:16.184206Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-12T05:55:16.184546Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.184591Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=AnalyzeExec verbose=false
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.184704Z INFO iox_query::query_log: query when="planned" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002827814 success=false running=true cancelled=false
2025-02-12T05:55:16.184971Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-12T05:55:16.184988Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=""
2025-02-12T05:55:16.185170Z INFO iox_query::query_log: query when="permit" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002827814 permit_duration_secs=0.000471257 success=false running=true cancelled=false
2025-02-12T05:55:16.185177Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-12T05:55:16.185269Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-12T05:55:16.185508Z INFO iox_query::query_log: query when="success" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002827814 permit_duration_secs=0.000471257 execute_duration_secs=0.00033433 end2end_duration_secs=0.003637406 compute_duration_secs=0.000186711 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-12T05:55:16.228903Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-12T05:55:16.229274Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.229303Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.229308Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.229362Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229387Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.229394Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229401Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229406Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229410Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.229413Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229414Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229416Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229417Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.229419Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229424Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229435Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229453Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.229457Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229459Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229462Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229464Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.229467Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229469Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229488Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.233620Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.233964Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.234027Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.234070Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234077Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.234081Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234086Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234089Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234093Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.234094Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234096Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234097Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234099Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.234100Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234104Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234113Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234134Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.234138Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234140Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234143Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234145Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.234148Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234150Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234164Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.234339Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.236929Z INFO iox_query::query_log: query when="received" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 success=false running=true cancelled=false
2025-02-12T05:55:16.236964Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-12T05:55:16.237185Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.237208Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.237213Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.237253Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237259Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.237266Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237270Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237273Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237277Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.237279Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237280Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237282Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237283Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.237285Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237288Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237297Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237320Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.237324Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237327Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237330Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237332Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.237335Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237336Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237349Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.237459Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-12T05:55:16.237517Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237540Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237550Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237575Z DEBUG datafusion_optimizer::utils: type_coercion:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237587Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237603Z DEBUG datafusion_optimizer::utils: extract_sleep:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237616Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237621Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237624Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms
2025-02-12T05:55:16.237633Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237646Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-12T05:55:16.237673Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237726Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.237733Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-12T05:55:16.237737Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-12T05:55:16.237744Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-12T05:55:16.237747Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-12T05:55:16.237751Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-12T05:55:16.237756Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-12T05:55:16.237759Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-12T05:55:16.237764Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-12T05:55:16.237771Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.237774Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-12T05:55:16.237778Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-12T05:55:16.237781Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-12T05:55:16.237785Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-12T05:55:16.237788Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-12T05:55:16.237793Z DEBUG datafusion_optimizer::utils: push_down_limit:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237801Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-12T05:55:16.237805Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-12T05:55:16.237815Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237828Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.237831Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.237835Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-12T05:55:16.237854Z DEBUG datafusion_optimizer::utils: optimize_projections:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237867Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-12T05:55:16.237872Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237878Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237881Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-12T05:55:16.237890Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237900Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.237903Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-12T05:55:16.237906Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-12T05:55:16.237910Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-12T05:55:16.237913Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-12T05:55:16.237916Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-12T05:55:16.237919Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-12T05:55:16.237922Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-12T05:55:16.237924Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-12T05:55:16.237927Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.237930Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-12T05:55:16.237932Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-12T05:55:16.237935Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-12T05:55:16.237938Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-12T05:55:16.237941Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-12T05:55:16.237944Z DEBUG datafusion_optimizer::utils: push_down_limit:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237947Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-12T05:55:16.237950Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-12T05:55:16.237956Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237964Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.237970Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.237973Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-12T05:55:16.237979Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237984Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-12T05:55:16.237985Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237989Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237992Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-12T05:55:16.237999Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238006Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.238009Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-12T05:55:16.238011Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-12T05:55:16.238014Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-12T05:55:16.238017Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-12T05:55:16.238019Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-12T05:55:16.238022Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-12T05:55:16.238025Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-12T05:55:16.238026Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-12T05:55:16.238029Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.238031Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-12T05:55:16.238034Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-12T05:55:16.238036Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-12T05:55:16.238039Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-12T05:55:16.238041Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-12T05:55:16.238044Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-12T05:55:16.238047Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-12T05:55:16.238050Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-12T05:55:16.238056Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238065Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.238070Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.238072Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-12T05:55:16.238080Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238087Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-12T05:55:16.238088Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238092Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-12T05:55:16.238094Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238096Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms
2025-02-12T05:55:16.238105Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-12T05:55:16.238113Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-12T05:55:16.238142Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-12T05:55:16.238228Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-12T05:55:16.238508Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.238545Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.238655Z INFO iox_query::query_log: query when="planned" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00172253 success=false running=true cancelled=false
2025-02-12T05:55:16.238798Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-12T05:55:16.238888Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-12T05:55:16.238915Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=""
2025-02-12T05:55:16.238921Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-12T05:55:16.238979Z INFO iox_query::query_log: query when="permit" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00172253 permit_duration_secs=0.000328991 success=false running=true cancelled=false
2025-02-12T05:55:16.239247Z INFO iox_query::query_log: query when="success" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00172253 permit_duration_secs=0.000328991 execute_duration_secs=0.000263787 end2end_duration_secs=0.002319628 compute_duration_secs=0.000102804 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false Unit test complete error log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘$ ./mvnw -T 1C -Dtest=TimeDifferenceTest clean test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 16
[INFO]
[INFO] ----------< io.github.linghengqian:influxdb-3-core-jdbc-test >----------
[INFO] Building influxdb-3-core-jdbc-test 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ influxdb-3-core-jdbc-test ---
[INFO] Deleting /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ influxdb-3-core-jdbc-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ influxdb-3-core-jdbc-test ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 7 source files with javac [debug target 21] to target/test-classes
[INFO]
[INFO] --- surefire:3.5.2:test (default-test) @ influxdb-3-core-jdbc-test ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.linghengqian.TimeDifferenceTest
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2月 12, 2025 1:55:15 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator <clinit>
信息: Debug mode disabled. Enable with the VM option -Darrow.memory.debug.allocator=true.
2月 12, 2025 1:55:15 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.DefaultAllocationManagerOption getDefaultAllocationManagerFactory
信息: allocation manager type not specified, using netty as the default type
2月 12, 2025 1:55:15 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.CheckAllocator reportResult
信息: Using DefaultAllocationManager at memory/netty/DefaultAllocationManagerFactory.class
2025-02-12T05:55:14.430988Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=891502ff-37e2-4cf2-98f0-39f648b230a2 num_cpus=16
2025-02-12T05:55:14.431059Z DEBUG influxdb3::commands::serve: build configuration build_malloc_conf=
2025-02-12T05:55:14.431304Z INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-12T05:55:14.431407Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-12T05:55:14.431448Z DEBUG influxdb3_cache::parquet_cache: >>> test: background cache pruning running
2025-02-12T05:55:14.469263Z DEBUG datafusion_execution::memory_pool::pool: Created new GreedyMemoryPool(pool_size=8589934592)
2025-02-12T05:55:14.469988Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="06514cd6-7761-4a13-8395-f6a218ec32e3"
2025-02-12T05:55:14.470116Z INFO influxdb3::commands::serve: catalog initialized instance_id="06514cd6-7761-4a13-8395-f6a218ec32e3"
2025-02-12T05:55:14.470208Z DEBUG influxdb3_wal::object_store: >>> replaying
2025-02-12T05:55:14.470248Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-12T05:55:14.470285Z DEBUG influxdb3::commands::serve: setting up background buffer checker mem_threshold_bytes=11441882726
2025-02-12T05:55:14.470341Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-12T05:55:14.470377Z DEBUG influxdb3::commands::serve: Initializing TelemetryStore with upload enabled for https://telemetry.v3.influxdata.com.
2025-02-12T05:55:14.470383Z DEBUG influxdb3_telemetry::store: Initializing telemetry store instance_id="06514cd6-7761-4a13-8395-f6a218ec32e3" os="linux" influx_version="influxdb3-0.1.0" storage_type="memory" cores=16
2025-02-12T05:55:14.471609Z DEBUG influxdb3_write::write_buffer: checking buffer size and snapshotting current_buffer_size_bytes=0 memory_threshold_bytes=11441882726
2025-02-12T05:55:14.478750Z DEBUG influxdb3_telemetry::store: Snapshot write size in bytes min=0 max=0 avg=0
2025-02-12T05:55:14.478806Z DEBUG influxdb3_telemetry::sender: trying to send data to telemetry server telemetry=TelemetryPayload { os: "linux", version: "influxdb3-0.1.0", storage_type: "memory", instance_id: "06514cd6-7761-4a13-8395-f6a218ec32e3", cores: 16, product_type: "Core", uptime_secs: 0, cpu_utilization_percent_min_1m: 0.0, cpu_utilization_percent_max_1m: 0.0, cpu_utilization_percent_avg_1m: 0.0, memory_used_mb_min_1m: 0, memory_used_mb_max_1m: 0, memory_used_mb_avg_1m: 0, write_requests_min_1m: 0, write_requests_max_1m: 0, write_requests_avg_1m: 0, write_requests_sum_1h: 0, write_lines_min_1m: 0, write_lines_max_1m: 0, write_lines_avg_1m: 0, write_lines_sum_1h: 0, write_mb_min_1m: 0, write_mb_max_1m: 0, write_mb_avg_1m: 0, write_mb_sum_1h: 0, query_requests_min_1m: 0, query_requests_max_1m: 0, query_requests_avg_1m: 0, query_requests_sum_1h: 0, parquet_file_count: 0, parquet_file_size_mb: 0.0, parquet_row_count: 0 }
2025-02-12T05:55:14.480053Z DEBUG reqwest::connect: starting new connection: https://telemetry.v3.influxdata.com/
2025-02-12T05:55:14.491478Z DEBUG hyper::client::connect::dns: resolving host="telemetry.v3.influxdata.com"
2025-02-12T05:55:14.501538Z DEBUG hyper::client::connect::http: connecting to 172.29.4.16:443
2025-02-12T05:55:14.502266Z DEBUG hyper::client::connect::http: connected to 172.29.4.16:443
2025-02-12T05:55:14.502354Z DEBUG rustls::client::hs: No cached session for DnsName("telemetry.v3.influxdata.com")
2025-02-12T05:55:14.502460Z DEBUG rustls::client::hs: Not resuming any session
2025-02-12T05:55:14.519322Z DEBUG influxdb3_telemetry::sampler: trying to sample data for cpu/memory cpu_used=0.0 mem_used=288149504
2025-02-12T05:55:14.519375Z DEBUG influxdb3_telemetry::store: Rolling up writes/reads events_summary=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-12T05:55:14.519385Z DEBUG influxdb3_telemetry::bucket: Resetting write bucket write_bucket=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-12T05:55:14.669578Z INFO influxdb3_server: startup time: 239ms address=0.0.0.0:8181
2025-02-12T05:55:14.873971Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_128_GCM_SHA256
2025-02-12T05:55:14.874069Z DEBUG rustls::client::tls13: Not resuming
2025-02-12T05:55:14.874198Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [ServerNameAck, Protocols([ProtocolName(6832)])]
2025-02-12T05:55:14.874242Z DEBUG rustls::client::hs: ALPN protocol is Some(b"h2")
2025-02-12T05:55:14.874700Z DEBUG hyper::client::pool: pooling idle connection for ("https", telemetry.v3.influxdata.com)
2025-02-12T05:55:15.292424Z DEBUG influxdb3_telemetry::sender: Successfully sent telemetry data to server to endpoint="https://telemetry.v3.influxdata.com/telem"
2025-02-12T05:55:15.312911Z DEBUG influxdb3_server::http: Processing request request=Request { method: POST, uri: /api/v2/write?bucket=mydb&precision=ns, version: HTTP/1.1, headers: {"connection": "Upgrade, HTTP2-Settings", "content-length": "52", "host": "localhost:32775", "http2-settings": "AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA", "upgrade": "h2c", "content-type": "text/plain; charset=utf-8", "user-agent": "influxdb3-java/1.0.0"}, body: Body(Streaming) }
2025-02-12T05:55:15.312983Z INFO influxdb3_server::http: write_lp to mydb
2025-02-12T05:55:15.314683Z DEBUG influxdb3_write::write_buffer: write_lp to mydb in writebuffer
2025-02-12T05:55:15.314732Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-12T05:55:15.314809Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739339715314678956, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-12T05:55:15.471940Z DEBUG influxdb3_wal::snapshot_tracker: >>> wal periods and snapshots wal_periods=[WalPeriod { wal_file_number: WalFileSequenceNumber(1), min_time: Timestamp(1739339703157086797), max_time: Timestamp(1739339715314678956) }] wal_periods_len=1 num_snapshots_after=900
2025-02-12T05:55:15.472011Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739339703157086797 max_timestamp_ns=1739339715314678956 wal_file_number=1
2025-02-12T05:55:15.472091Z DEBUG influxdb3_wal::object_store: notify sent to buffer for wal file 1
2025-02-12T05:55:15.472100Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739339715314678956, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-12T05:55:15.472221Z DEBUG influxdb3_server::http: Successfully processed request response=Response { status: 204, version: HTTP/1.1, headers: {}, body: Body(Empty) }
2025-02-12T05:55:16.124245Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10 trace=
2025-02-12T05:55:16.124647Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.124678Z DEBUG flightsql::planner: Creating prepared statement query=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.124684Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.124785Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124818Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.124854Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124864Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124874Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124879Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.124880Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124882Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124884Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124886Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.124888Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124918Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124944Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124952Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.124956Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124958Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.124961Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.124964Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.124967Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.124969Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.125051Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.166821Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.167179Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.167216Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.167277Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167305Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.167312Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167318Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167323Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167327Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.167330Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167331Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167333Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167335Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.167336Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167342Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167353Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167373Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.167378Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167380Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167383Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.167386Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.167389Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.167391Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.167409Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.167615Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.181874Z INFO iox_query::query_log: query when="received" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 success=false running=true cancelled=false
2025-02-12T05:55:16.181933Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-12T05:55:16.182193Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.182228Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.182236Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.182290Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182316Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.182323Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182329Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182333Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182337Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.182339Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182340Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182342Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182344Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.182345Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182349Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182360Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182379Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.182383Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182386Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182389Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.182391Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.182394Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.182396Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.182414Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.182565Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Analyze [plan_type:Utf8, plan:Utf8]
Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-12T05:55:16.182698Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182745Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182777Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182835Z DEBUG datafusion_optimizer::utils: type_coercion:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182871Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182918Z DEBUG datafusion_optimizer::utils: extract_sleep:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182959Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182969Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.182972Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms
2025-02-12T05:55:16.182991Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183039Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-12T05:55:16.183108Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183151Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.183163Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-12T05:55:16.183170Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-12T05:55:16.183178Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-12T05:55:16.183182Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-12T05:55:16.183187Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-12T05:55:16.183192Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-12T05:55:16.183197Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-12T05:55:16.183201Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-12T05:55:16.183234Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.183240Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-12T05:55:16.183263Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-12T05:55:16.183269Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-12T05:55:16.183277Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-12T05:55:16.183281Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-12T05:55:16.183285Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183293Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-12T05:55:16.183297Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-12T05:55:16.183309Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.183342Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.183350Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.183354Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-12T05:55:16.183381Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183432Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-12T05:55:16.183436Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183444Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183449Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-12T05:55:16.183463Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183477Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.183499Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-12T05:55:16.183506Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-12T05:55:16.183511Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-12T05:55:16.183514Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-12T05:55:16.183517Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-12T05:55:16.183521Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-12T05:55:16.183524Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-12T05:55:16.183527Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-12T05:55:16.183531Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.183567Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-12T05:55:16.183572Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-12T05:55:16.183576Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-12T05:55:16.183579Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-12T05:55:16.183582Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-12T05:55:16.183586Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183592Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-12T05:55:16.183595Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-12T05:55:16.183605Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183617Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.183621Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.183624Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-12T05:55:16.183636Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183659Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-12T05:55:16.183663Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183671Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183675Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-12T05:55:16.183685Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183716Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.183721Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-12T05:55:16.183725Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-12T05:55:16.183729Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-12T05:55:16.183732Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-12T05:55:16.183734Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-12T05:55:16.183738Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-12T05:55:16.183741Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-12T05:55:16.183743Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-12T05:55:16.183747Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.183749Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-12T05:55:16.183753Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-12T05:55:16.183755Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-12T05:55:16.183758Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-12T05:55:16.183761Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-12T05:55:16.183769Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-12T05:55:16.183772Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-12T05:55:16.183775Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-12T05:55:16.183803Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183821Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.183825Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.183828Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-12T05:55:16.183840Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183863Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-12T05:55:16.183868Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183875Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-12T05:55:16.183877Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.183880Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms
2025-02-12T05:55:16.183902Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-12T05:55:16.183938Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-12T05:55:16.184019Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-12T05:55:16.184206Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-12T05:55:16.184546Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.184591Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=AnalyzeExec verbose=false
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.184704Z INFO iox_query::query_log: query when="planned" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002827814 success=false running=true cancelled=false
2025-02-12T05:55:16.184971Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-12T05:55:16.184988Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=""
2025-02-12T05:55:16.185170Z INFO iox_query::query_log: query when="permit" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002827814 permit_duration_secs=0.000471257 success=false running=true cancelled=false
2025-02-12T05:55:16.185177Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-12T05:55:16.185269Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-12T05:55:16.185508Z INFO iox_query::query_log: query when="success" id=d2e78ca4-ba5e-4e55-b163-1e569cb7e535 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.181870237+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002827814 permit_duration_secs=0.000471257 execute_duration_secs=0.00033433 end2end_duration_secs=0.003637406 compute_duration_secs=0.000186711 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-12T05:55:16.228903Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-12T05:55:16.229274Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.229303Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.229308Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.229362Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229387Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.229394Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229401Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229406Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229410Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.229413Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229414Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229416Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229417Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.229419Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229424Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229435Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229453Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.229457Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229459Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229462Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.229464Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.229467Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.229469Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.229488Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.233620Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.233964Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.234027Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.234070Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234077Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.234081Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234086Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234089Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234093Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.234094Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234096Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234097Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234099Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.234100Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234104Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234113Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234134Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.234138Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234140Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234143Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.234145Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.234148Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.234150Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.234164Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.234339Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-12T05:55:16.236929Z INFO iox_query::query_log: query when="received" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 success=false running=true cancelled=false
2025-02-12T05:55:16.236964Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-12T05:55:16.237185Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.237208Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-12T05:55:16.237213Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-12T05:55:16.237253Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237259Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.237266Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237270Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237273Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237277Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-12T05:55:16.237279Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237280Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237282Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237283Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-12T05:55:16.237285Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237288Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237297Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237320Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-12T05:55:16.237324Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237327Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237330Z DEBUG sqlparser::parser: parsing expr
2025-02-12T05:55:16.237332Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-12T05:55:16.237335Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-12T05:55:16.237336Z DEBUG sqlparser::parser: next precedence: 0
2025-02-12T05:55:16.237349Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-12T05:55:16.237459Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-12T05:55:16.237517Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237540Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237550Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237575Z DEBUG datafusion_optimizer::utils: type_coercion:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237587Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237603Z DEBUG datafusion_optimizer::utils: extract_sleep:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237616Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237621Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237624Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms
2025-02-12T05:55:16.237633Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237646Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-12T05:55:16.237673Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237726Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.237733Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-12T05:55:16.237737Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-12T05:55:16.237744Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-12T05:55:16.237747Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-12T05:55:16.237751Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-12T05:55:16.237756Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-12T05:55:16.237759Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-12T05:55:16.237764Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-12T05:55:16.237771Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.237774Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-12T05:55:16.237778Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-12T05:55:16.237781Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-12T05:55:16.237785Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-12T05:55:16.237788Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-12T05:55:16.237793Z DEBUG datafusion_optimizer::utils: push_down_limit:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237801Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-12T05:55:16.237805Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-12T05:55:16.237815Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-12T05:55:16.237828Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-12T05:55:16.237831Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-12T05:55:16.237835Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-12T05:55:16.237854Z DEBUG datafusion_optimizer::utils: optimize_projections:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237867Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-12T05:55:16.237872Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237878Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237881Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-12T05:55:16.237890Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237900Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.237903Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-12T05:55:16.237906Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-12T05:55:16.237910Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-12T05:55:16.237913Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-12T05:55:16.237916Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-12T05:55:16.237919Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-12T05:55:16.237922Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-12T05:55:16.237924Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-12T05:55:16.237927Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.237930Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-12T05:55:16.237932Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-12T05:55:16.237935Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-12T05:55:16.237938Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-12T05:55:16.237941Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-12T05:55:16.237944Z DEBUG datafusion_optimizer::utils: push_down_limit:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237947Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-12T05:55:16.237950Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-12T05:55:16.237956Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237964Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-12T05:55:16.237970Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-12T05:55:16.237973Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-12T05:55:16.237979Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237984Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-12T05:55:16.237985Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237989Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.237992Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-12T05:55:16.237999Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238006Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.238009Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-12T05:55:16.238011Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-12T05:55:16.238014Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-12T05:55:16.238017Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-12T05:55:16.238019Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-12T05:55:16.238022Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-12T05:55:16.238025Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-12T05:55:16.238026Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-12T05:55:16.238029Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.238031Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-12T05:55:16.238034Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-12T05:55:16.238036Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-12T05:55:16.238039Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-12T05:55:16.238041Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-12T05:55:16.238044Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-12T05:55:16.238047Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-12T05:55:16.238050Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-12T05:55:16.238056Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238065Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-12T05:55:16.238070Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-12T05:55:16.238072Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-12T05:55:16.238080Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238087Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-12T05:55:16.238088Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238092Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-12T05:55:16.238094Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-12T05:55:16.238096Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms
2025-02-12T05:55:16.238105Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-12T05:55:16.238113Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-12T05:55:16.238142Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-12T05:55:16.238228Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-12T05:55:16.238508Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.238545Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-12T05:55:16.238655Z INFO iox_query::query_log: query when="planned" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00172253 success=false running=true cancelled=false
2025-02-12T05:55:16.238798Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-12T05:55:16.238888Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-12T05:55:16.238915Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=""
2025-02-12T05:55:16.238921Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-12T05:55:16.238979Z INFO iox_query::query_log: query when="permit" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00172253 permit_duration_secs=0.000328991 success=false running=true cancelled=false
2025-02-12T05:55:16.239247Z INFO iox_query::query_log: query when="success" id=ce296c59-635a-4e0a-b612-7a34fea30345 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-12T05:55:16.236927055+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00172253 permit_duration_secs=0.000328991 execute_duration_secs=0.000263787 end2end_duration_secs=0.002319628 compute_duration_secs=0.000102804 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.725 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 3.659 s <<< FAILURE!
java.lang.AssertionError:
Expected: is <1739339703157L>
but: was <1739282103157L>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:66)
at io.github.linghengqian.TimeDifferenceTest.test(TimeDifferenceTest.java:40)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TimeDifferenceTest.test:40->queryDataByJdbcDriver:66
Expected: is <1739339703157L>
but: was <1739282103157L>
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.792 s (Wall Clock)
[INFO] Finished at: 2025-02-12T13:55:17+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test (default-test) on project influxdb-3-core-jdbc-test: There are test failures.
[ERROR]
[ERROR] See /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException |
I agree, the logs don't reveal much to me either.
Would it be possible for you to display the raw result set? I am not as familiar with the Java Client/Flight SQL implementation, so I don't know the easiest way to do this, but if you could output the full query result, it would help to know:
|
Original data set of `EXPLAIN ANALYZE`🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘plan_type plan
----------------------------------
Plan with Metrics SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=1.319786ms, row_replacements=1]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value], metrics=[output_rows=1, elapsed_compute=2.138µs]
DeduplicateExec: [location@1 ASC,time@0 ASC], metrics=[output_rows=1, elapsed_compute=192.106µs, num_dupes=0]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=5.610107ms, spill_count=0, spilled_bytes=0, spilled_rows=0]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order], metrics=[output_rows=1, elapsed_compute=1.671µs]
container log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘2025-02-13T13:48:42.380001Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=e4c2270a-0a8e-4913-9b53-1eb0fde9c9a8 num_cpus=16
2025-02-13T13:48:42.383012Z DEBUG influxdb3::commands::serve: build configuration build_malloc_conf=
2025-02-13T13:48:42.384619Z INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-13T13:48:42.388000Z DEBUG influxdb3_cache::parquet_cache: >>> test: background cache pruning running
2025-02-13T13:48:42.387845Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-13T13:48:42.442751Z DEBUG datafusion_execution::memory_pool::pool: Created new GreedyMemoryPool(pool_size=8589934592)
2025-02-13T13:48:42.469179Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38"
2025-02-13T13:48:42.472095Z INFO influxdb3::commands::serve: catalog initialized instance_id="bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38"
2025-02-13T13:48:42.473612Z DEBUG influxdb3_wal::object_store: >>> replaying
2025-02-13T13:48:42.474165Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-13T13:48:42.474200Z DEBUG influxdb3::commands::serve: setting up background buffer checker mem_threshold_bytes=11441882726
2025-02-13T13:48:42.474208Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-13T13:48:42.474213Z DEBUG influxdb3::commands::serve: Initializing TelemetryStore with upload enabled for https://telemetry.v3.influxdata.com.
2025-02-13T13:48:42.474220Z DEBUG influxdb3_telemetry::store: Initializing telemetry store instance_id="bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38" os="linux" influx_version="influxdb3-0.1.0" storage_type="memory" cores=16
2025-02-13T13:48:42.475498Z DEBUG influxdb3_write::write_buffer: checking buffer size and snapshotting current_buffer_size_bytes=0 memory_threshold_bytes=11441882726
2025-02-13T13:48:42.493428Z DEBUG influxdb3_telemetry::store: Snapshot write size in bytes min=0 max=0 avg=0
2025-02-13T13:48:42.493470Z DEBUG influxdb3_telemetry::sender: trying to send data to telemetry server telemetry=TelemetryPayload { os: "linux", version: "influxdb3-0.1.0", storage_type: "memory", instance_id: "bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38", cores: 16, product_type: "Core", uptime_secs: 0, cpu_utilization_percent_min_1m: 0.0, cpu_utilization_percent_max_1m: 0.0, cpu_utilization_percent_avg_1m: 0.0, memory_used_mb_min_1m: 0, memory_used_mb_max_1m: 0, memory_used_mb_avg_1m: 0, write_requests_min_1m: 0, write_requests_max_1m: 0, write_requests_avg_1m: 0, write_requests_sum_1h: 0, write_lines_min_1m: 0, write_lines_max_1m: 0, write_lines_avg_1m: 0, write_lines_sum_1h: 0, write_mb_min_1m: 0, write_mb_max_1m: 0, write_mb_avg_1m: 0, write_mb_sum_1h: 0, query_requests_min_1m: 0, query_requests_max_1m: 0, query_requests_avg_1m: 0, query_requests_sum_1h: 0, parquet_file_count: 0, parquet_file_size_mb: 0.0, parquet_row_count: 0 }
2025-02-13T13:48:42.510041Z DEBUG reqwest::connect: starting new connection: https://telemetry.v3.influxdata.com/
2025-02-13T13:48:42.527758Z DEBUG hyper::client::connect::dns: resolving host="telemetry.v3.influxdata.com"
2025-02-13T13:48:42.528737Z DEBUG influxdb3_telemetry::sampler: trying to sample data for cpu/memory cpu_used=0.0 mem_used=312270848
2025-02-13T13:48:42.528778Z DEBUG influxdb3_telemetry::store: Rolling up writes/reads events_summary=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-13T13:48:42.528789Z DEBUG influxdb3_telemetry::bucket: Resetting write bucket write_bucket=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-13T13:48:42.530165Z DEBUG hyper::client::connect::http: connecting to 172.29.1.4:443
2025-02-13T13:48:42.530946Z DEBUG hyper::client::connect::http: connected to 172.29.1.4:443
2025-02-13T13:48:42.531375Z DEBUG rustls::client::hs: No cached session for DnsName("telemetry.v3.influxdata.com")
2025-02-13T13:48:42.533142Z DEBUG rustls::client::hs: Not resuming any session
2025-02-13T13:48:42.911183Z INFO influxdb3_server: startup time: 535ms address=0.0.0.0:8181
2025-02-13T13:48:43.724841Z DEBUG influxdb3_server::http: Processing request request=Request { method: POST, uri: /api/v2/write?bucket=mydb&precision=ns, version: HTTP/1.1, headers: {"connection": "Upgrade, HTTP2-Settings", "content-length": "52", "host": "localhost:32779", "http2-settings": "AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA", "upgrade": "h2c", "content-type": "text/plain; charset=utf-8", "user-agent": "influxdb3-java/1.0.0"}, body: Body(Streaming) }
2025-02-13T13:48:43.725988Z INFO influxdb3_server::http: write_lp to mydb
2025-02-13T13:48:43.726453Z DEBUG influxdb3_write::write_buffer: write_lp to mydb in writebuffer
2025-02-13T13:48:43.726547Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-13T13:48:43.727963Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739454523726451042, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-13T13:48:44.069010Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_128_GCM_SHA256
2025-02-13T13:48:44.070110Z DEBUG rustls::client::tls13: Not resuming
2025-02-13T13:48:44.070231Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [ServerNameAck, Protocols([ProtocolName(6832)])]
2025-02-13T13:48:44.070255Z DEBUG rustls::client::hs: ALPN protocol is Some(b"h2")
2025-02-13T13:48:44.071815Z DEBUG hyper::client::pool: pooling idle connection for ("https", telemetry.v3.influxdata.com)
2025-02-13T13:48:44.475848Z DEBUG influxdb3_wal::snapshot_tracker: >>> wal periods and snapshots wal_periods=[WalPeriod { wal_file_number: WalFileSequenceNumber(1), min_time: Timestamp(1739454510705661343), max_time: Timestamp(1739454523726451042) }] wal_periods_len=1 num_snapshots_after=900
2025-02-13T13:48:44.475944Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739454510705661343 max_timestamp_ns=1739454523726451042 wal_file_number=1
2025-02-13T13:48:44.476616Z DEBUG influxdb3_wal::object_store: notify sent to buffer for wal file 1
2025-02-13T13:48:44.476658Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739454523726451042, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-13T13:48:44.478896Z DEBUG influxdb3_server::http: Successfully processed request response=Response { status: 204, version: HTTP/1.1, headers: {}, body: Body(Empty) }
2025-02-13T13:48:44.528905Z DEBUG influxdb3_telemetry::sender: Successfully sent telemetry data to server to endpoint="https://telemetry.v3.influxdata.com/telem"
2025-02-13T13:48:42.960813Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10 trace=
2025-02-13T13:48:42.962407Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:42.962847Z DEBUG flightsql::planner: Creating prepared statement query=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:42.962882Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:42.965736Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.966485Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:42.967296Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.967820Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.968223Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.968231Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:42.968234Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.968236Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.968238Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.968240Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:42.968242Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.969104Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.969544Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.969574Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:42.969579Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.969582Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.969585Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.969588Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:42.969590Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.969592Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.973455Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.035993Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.036373Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.036426Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.036488Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036519Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.036553Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036562Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036568Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036574Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.036577Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036580Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036582Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036586Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.036589Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036594Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036608Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036639Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.036646Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036650Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036655Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036659Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.036663Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036665Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036685Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.037358Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.051319Z INFO iox_query::query_log: query when="received" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 success=false running=true cancelled=false
2025-02-13T13:48:43.051750Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-13T13:48:43.052137Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.052180Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.052189Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.052246Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052255Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.052288Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052297Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052302Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052308Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.052311Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052314Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052317Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052320Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.052322Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052327Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052340Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052370Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.052377Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052380Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052383Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052387Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.052391Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052393Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052410Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.053292Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Analyze [plan_type:Utf8, plan:Utf8]
Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-13T13:48:43.059450Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.060079Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.060133Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.062239Z DEBUG datafusion_optimizer::utils: type_coercion:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.062376Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.064994Z DEBUG datafusion_optimizer::utils: extract_sleep:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.065622Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.065666Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.065742Z DEBUG datafusion_optimizer::analyzer: Analyzer took 11 ms
2025-02-13T13:48:43.066531Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.068202Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-13T13:48:43.070522Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.070588Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.070645Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-13T13:48:43.070686Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-13T13:48:43.070967Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-13T13:48:43.071006Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-13T13:48:43.071017Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-13T13:48:43.071025Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-13T13:48:43.071030Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-13T13:48:43.071044Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-13T13:48:43.071158Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.071194Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-13T13:48:43.071202Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-13T13:48:43.071208Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-13T13:48:43.071220Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-13T13:48:43.071225Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-13T13:48:43.071230Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.071284Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-13T13:48:43.071326Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-13T13:48:43.071351Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.071432Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.071469Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.071478Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-13T13:48:43.071582Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072873Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-13T13:48:43.072895Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072911Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072918Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-13T13:48:43.072934Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072950Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.072968Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-13T13:48:43.072975Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-13T13:48:43.072980Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-13T13:48:43.072985Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-13T13:48:43.072988Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-13T13:48:43.073007Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-13T13:48:43.073012Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-13T13:48:43.073015Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-13T13:48:43.073019Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.073038Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-13T13:48:43.073043Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-13T13:48:43.073046Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-13T13:48:43.073049Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-13T13:48:43.073052Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-13T13:48:43.073055Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073061Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-13T13:48:43.073063Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-13T13:48:43.073072Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073100Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.073106Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.073109Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-13T13:48:43.073121Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073143Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-13T13:48:43.073147Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073157Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073161Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-13T13:48:43.073170Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073183Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.073201Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-13T13:48:43.073205Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-13T13:48:43.073210Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-13T13:48:43.073212Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-13T13:48:43.073215Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-13T13:48:43.073217Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-13T13:48:43.073220Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-13T13:48:43.073223Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-13T13:48:43.073226Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.073228Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-13T13:48:43.073231Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-13T13:48:43.073234Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-13T13:48:43.073236Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-13T13:48:43.073239Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-13T13:48:43.073261Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-13T13:48:43.073265Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-13T13:48:43.073268Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-13T13:48:43.073278Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073298Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.073317Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.073323Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-13T13:48:43.073335Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073356Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-13T13:48:43.073360Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073367Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-13T13:48:43.073368Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073371Z DEBUG datafusion_optimizer::optimizer: Optimizer took 7 ms
2025-02-13T13:48:43.073915Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T13:48:43.074339Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T13:48:43.079436Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T13:48:43.087144Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-13T13:48:43.091898Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.091953Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=AnalyzeExec verbose=false
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.092079Z INFO iox_query::query_log: query when="planned" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.040758393 success=false running=true cancelled=false
2025-02-13T13:48:43.092827Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T13:48:43.092839Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=""
2025-02-13T13:48:43.092989Z INFO iox_query::query_log: query when="permit" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.040758393 permit_duration_secs=0.000914971 success=false running=true cancelled=false
2025-02-13T13:48:43.099646Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T13:48:43.099711Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T13:48:43.103607Z INFO iox_query::query_log: query when="success" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.040758393 permit_duration_secs=0.000914971 execute_duration_secs=0.010610262 end2end_duration_secs=0.052290831 compute_duration_secs=0.007125808 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-13T13:48:43.136402Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-13T13:48:43.136841Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.136864Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.136871Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.136975Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137011Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.137018Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137023Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137027Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137030Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.137032Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137033Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137035Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137037Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.137038Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137042Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137059Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137078Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.137081Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137084Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137086Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137088Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.137091Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137093Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137113Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.140807Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.141084Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.141128Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.141176Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141210Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.141219Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141250Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141258Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141264Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.141267Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141270Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141273Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141276Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.141278Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141282Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141302Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141332Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.141338Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141343Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141346Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141350Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.141353Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141356Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141372Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.141581Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.143896Z INFO iox_query::query_log: query when="received" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 success=false running=true cancelled=false
2025-02-13T13:48:43.143938Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-13T13:48:43.144175Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.144206Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.144212Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.144267Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144291Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.144297Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144301Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144305Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144309Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.144310Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144312Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144314Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144315Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.144317Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144320Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144331Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144349Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.144352Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144355Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144357Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144360Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.144362Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144363Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144379Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.144501Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-13T13:48:43.144552Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144572Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144582Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144626Z DEBUG datafusion_optimizer::utils: type_coercion:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144660Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144679Z DEBUG datafusion_optimizer::utils: extract_sleep:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144688Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144693Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144698Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms
2025-02-13T13:48:43.144708Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144720Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-13T13:48:43.144745Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144778Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.144799Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-13T13:48:43.144804Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-13T13:48:43.144811Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-13T13:48:43.144815Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-13T13:48:43.144818Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-13T13:48:43.144823Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-13T13:48:43.144825Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-13T13:48:43.144829Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-13T13:48:43.144836Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.144841Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-13T13:48:43.144844Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-13T13:48:43.144848Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-13T13:48:43.144851Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-13T13:48:43.144854Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-13T13:48:43.144858Z DEBUG datafusion_optimizer::utils: push_down_limit:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144865Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-13T13:48:43.144868Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-13T13:48:43.144878Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144908Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.144914Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.144917Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-13T13:48:43.144936Z DEBUG datafusion_optimizer::utils: optimize_projections:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145003Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-13T13:48:43.145017Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145026Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145032Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-13T13:48:43.145043Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145055Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.145058Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-13T13:48:43.145061Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-13T13:48:43.145064Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-13T13:48:43.145067Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-13T13:48:43.145070Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-13T13:48:43.145073Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-13T13:48:43.145076Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-13T13:48:43.145078Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-13T13:48:43.145081Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.145085Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-13T13:48:43.145088Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-13T13:48:43.145090Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-13T13:48:43.145093Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-13T13:48:43.145096Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-13T13:48:43.145100Z DEBUG datafusion_optimizer::utils: push_down_limit:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145103Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-13T13:48:43.145106Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-13T13:48:43.145113Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145121Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.145123Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.145128Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-13T13:48:43.145141Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145146Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-13T13:48:43.145148Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145152Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145155Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-13T13:48:43.145161Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145169Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.145172Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-13T13:48:43.145174Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-13T13:48:43.145177Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-13T13:48:43.145179Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-13T13:48:43.145182Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-13T13:48:43.145184Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-13T13:48:43.145187Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-13T13:48:43.145189Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-13T13:48:43.145193Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.145195Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-13T13:48:43.145198Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-13T13:48:43.145200Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-13T13:48:43.145202Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-13T13:48:43.145205Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-13T13:48:43.145207Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-13T13:48:43.145209Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-13T13:48:43.145212Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-13T13:48:43.145218Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145230Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.145233Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.145235Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-13T13:48:43.145241Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145248Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-13T13:48:43.145249Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145253Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-13T13:48:43.145255Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145258Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms
2025-02-13T13:48:43.145265Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T13:48:43.145287Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T13:48:43.145333Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T13:48:43.145436Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-13T13:48:43.145695Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.145726Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.145803Z INFO iox_query::query_log: query when="planned" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001907559 success=false running=true cancelled=false
2025-02-13T13:48:43.145970Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T13:48:43.146058Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T13:48:43.146089Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T13:48:43.146142Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=""
2025-02-13T13:48:43.146243Z INFO iox_query::query_log: query when="permit" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001907559 permit_duration_secs=0.000442001 success=false running=true cancelled=false
2025-02-13T13:48:43.147401Z INFO iox_query::query_log: query when="success" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001907559 permit_duration_secs=0.000442001 execute_duration_secs=0.001151304 end2end_duration_secs=0.003507624 compute_duration_secs=8.3877e-5 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false Unit test complete error log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘$ ./mvnw -T 1C -Dtest=TimeDifferenceTest clean test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 16
[INFO]
[INFO] ----------< io.github.linghengqian:influxdb-3-core-jdbc-test >----------
[INFO] Building influxdb-3-core-jdbc-test 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ influxdb-3-core-jdbc-test ---
[INFO] Deleting /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ influxdb-3-core-jdbc-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ influxdb-3-core-jdbc-test ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 7 source files with javac [debug target 21] to target/test-classes
[INFO]
[INFO] --- surefire:3.5.2:test (default-test) @ influxdb-3-core-jdbc-test ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.linghengqian.TimeDifferenceTest
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2月 13, 2025 9:48:44 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator <clinit>
信息: Debug mode disabled. Enable with the VM option -Darrow.memory.debug.allocator=true.
2月 13, 2025 9:48:44 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.DefaultAllocationManagerOption getDefaultAllocationManagerFactory
信息: allocation manager type not specified, using netty as the default type
2月 13, 2025 9:48:44 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.CheckAllocator reportResult
信息: Using DefaultAllocationManager at memory/netty/DefaultAllocationManagerFactory.class
plan_type plan
----------------------------------
Plan with Metrics SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=1.319786ms, row_replacements=1]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value], metrics=[output_rows=1, elapsed_compute=2.138µs]
DeduplicateExec: [location@1 ASC,time@0 ASC], metrics=[output_rows=1, elapsed_compute=192.106µs, num_dupes=0]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=5.610107ms, spill_count=0, spilled_bytes=0, spilled_rows=0]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order], metrics=[output_rows=1, elapsed_compute=1.671µs]
----------------------------------
2025-02-13T13:48:42.380001Z INFO influxdb3::commands::serve: InfluxDB 3 Core server starting node_id=local01 git_hash=v2.5.0-14314-g911ba92ab4133e75fe2a420e16ed9cb4cf32196f-dirty version=0.1.0 uuid=e4c2270a-0a8e-4913-9b53-1eb0fde9c9a8 num_cpus=16
2025-02-13T13:48:42.383012Z DEBUG influxdb3::commands::serve: build configuration build_malloc_conf=
2025-02-13T13:48:42.384619Z INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-13T13:48:42.388000Z DEBUG influxdb3_cache::parquet_cache: >>> test: background cache pruning running
2025-02-13T13:48:42.387845Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-13T13:48:42.442751Z DEBUG datafusion_execution::memory_pool::pool: Created new GreedyMemoryPool(pool_size=8589934592)
2025-02-13T13:48:42.469179Z INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38"
2025-02-13T13:48:42.472095Z INFO influxdb3::commands::serve: catalog initialized instance_id="bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38"
2025-02-13T13:48:42.473612Z DEBUG influxdb3_wal::object_store: >>> replaying
2025-02-13T13:48:42.474165Z INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-13T13:48:42.474200Z DEBUG influxdb3::commands::serve: setting up background buffer checker mem_threshold_bytes=11441882726
2025-02-13T13:48:42.474208Z INFO influxdb3::commands::serve: setting up telemetry store
2025-02-13T13:48:42.474213Z DEBUG influxdb3::commands::serve: Initializing TelemetryStore with upload enabled for https://telemetry.v3.influxdata.com.
2025-02-13T13:48:42.474220Z DEBUG influxdb3_telemetry::store: Initializing telemetry store instance_id="bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38" os="linux" influx_version="influxdb3-0.1.0" storage_type="memory" cores=16
2025-02-13T13:48:42.475498Z DEBUG influxdb3_write::write_buffer: checking buffer size and snapshotting current_buffer_size_bytes=0 memory_threshold_bytes=11441882726
2025-02-13T13:48:42.493428Z DEBUG influxdb3_telemetry::store: Snapshot write size in bytes min=0 max=0 avg=0
2025-02-13T13:48:42.493470Z DEBUG influxdb3_telemetry::sender: trying to send data to telemetry server telemetry=TelemetryPayload { os: "linux", version: "influxdb3-0.1.0", storage_type: "memory", instance_id: "bd4c9a38-4a99-4fa2-8aa9-ef2eb70eeb38", cores: 16, product_type: "Core", uptime_secs: 0, cpu_utilization_percent_min_1m: 0.0, cpu_utilization_percent_max_1m: 0.0, cpu_utilization_percent_avg_1m: 0.0, memory_used_mb_min_1m: 0, memory_used_mb_max_1m: 0, memory_used_mb_avg_1m: 0, write_requests_min_1m: 0, write_requests_max_1m: 0, write_requests_avg_1m: 0, write_requests_sum_1h: 0, write_lines_min_1m: 0, write_lines_max_1m: 0, write_lines_avg_1m: 0, write_lines_sum_1h: 0, write_mb_min_1m: 0, write_mb_max_1m: 0, write_mb_avg_1m: 0, write_mb_sum_1h: 0, query_requests_min_1m: 0, query_requests_max_1m: 0, query_requests_avg_1m: 0, query_requests_sum_1h: 0, parquet_file_count: 0, parquet_file_size_mb: 0.0, parquet_row_count: 0 }
2025-02-13T13:48:42.510041Z DEBUG reqwest::connect: starting new connection: https://telemetry.v3.influxdata.com/
2025-02-13T13:48:42.527758Z DEBUG hyper::client::connect::dns: resolving host="telemetry.v3.influxdata.com"
2025-02-13T13:48:42.528737Z DEBUG influxdb3_telemetry::sampler: trying to sample data for cpu/memory cpu_used=0.0 mem_used=312270848
2025-02-13T13:48:42.528778Z DEBUG influxdb3_telemetry::store: Rolling up writes/reads events_summary=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-13T13:48:42.528789Z DEBUG influxdb3_telemetry::bucket: Resetting write bucket write_bucket=EventsBucket { writes: PerMinuteWrites { lines: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_lines: 0, size_bytes: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_size_bytes: 0 }, queries: PerMinuteReads { num_queries: Stats { min: 0, max: 0, avg: 0, num_samples: 0 }, total_num_queries: 0 }, num_writes: 0, num_queries: 0 }
2025-02-13T13:48:42.530165Z DEBUG hyper::client::connect::http: connecting to 172.29.1.4:443
2025-02-13T13:48:42.530946Z DEBUG hyper::client::connect::http: connected to 172.29.1.4:443
2025-02-13T13:48:42.531375Z DEBUG rustls::client::hs: No cached session for DnsName("telemetry.v3.influxdata.com")
2025-02-13T13:48:42.533142Z DEBUG rustls::client::hs: Not resuming any session
2025-02-13T13:48:42.911183Z INFO influxdb3_server: startup time: 535ms address=0.0.0.0:8181
2025-02-13T13:48:43.724841Z DEBUG influxdb3_server::http: Processing request request=Request { method: POST, uri: /api/v2/write?bucket=mydb&precision=ns, version: HTTP/1.1, headers: {"connection": "Upgrade, HTTP2-Settings", "content-length": "52", "host": "localhost:32779", "http2-settings": "AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA", "upgrade": "h2c", "content-type": "text/plain; charset=utf-8", "user-agent": "influxdb3-java/1.0.0"}, body: Body(Streaming) }
2025-02-13T13:48:43.725988Z INFO influxdb3_server::http: write_lp to mydb
2025-02-13T13:48:43.726453Z DEBUG influxdb3_write::write_buffer: write_lp to mydb in writebuffer
2025-02-13T13:48:43.726547Z INFO influxdb3_catalog::catalog: return new db mydb
2025-02-13T13:48:43.727963Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739454523726451042, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-13T13:48:44.069010Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_128_GCM_SHA256
2025-02-13T13:48:44.070110Z DEBUG rustls::client::tls13: Not resuming
2025-02-13T13:48:44.070231Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [ServerNameAck, Protocols([ProtocolName(6832)])]
2025-02-13T13:48:44.070255Z DEBUG rustls::client::hs: ALPN protocol is Some(b"h2")
2025-02-13T13:48:44.071815Z DEBUG hyper::client::pool: pooling idle connection for ("https", telemetry.v3.influxdata.com)
2025-02-13T13:48:44.475848Z DEBUG influxdb3_wal::snapshot_tracker: >>> wal periods and snapshots wal_periods=[WalPeriod { wal_file_number: WalFileSequenceNumber(1), min_time: Timestamp(1739454510705661343), max_time: Timestamp(1739454523726451042) }] wal_periods_len=1 num_snapshots_after=900
2025-02-13T13:48:44.475944Z INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739454510705661343 max_timestamp_ns=1739454523726451042 wal_file_number=1
2025-02-13T13:48:44.476616Z DEBUG influxdb3_wal::object_store: notify sent to buffer for wal file 1
2025-02-13T13:48:44.476658Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739454523726451042, ops: [CreateTable(WalTableDefinition { database_id: DbId(0), database_name: "mydb", table_name: "home", table_id: TableId(0), field_definitions: [FieldDefinition { name: "location", id: ColumnId(0), data_type: Tag }, FieldDefinition { name: "value", id: ColumnId(1), data_type: Float }, FieldDefinition { name: "time", id: ColumnId(2), data_type: Timestamp }], key: [ColumnId(0)] })] }
2025-02-13T13:48:44.478896Z DEBUG influxdb3_server::http: Successfully processed request response=Response { status: 204, version: HTTP/1.1, headers: {}, body: Body(Empty) }
2025-02-13T13:48:44.528905Z DEBUG influxdb3_telemetry::sender: Successfully sent telemetry data to server to endpoint="https://telemetry.v3.influxdata.com/telem"
2025-02-13T13:48:42.960813Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10 trace=
2025-02-13T13:48:42.962407Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestEXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:42.962847Z DEBUG flightsql::planner: Creating prepared statement query=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:42.962882Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:42.965736Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.966485Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:42.967296Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.967820Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.968223Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.968231Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:42.968234Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.968236Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.968238Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.968240Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:42.968242Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.969104Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.969544Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.969574Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:42.969579Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.969582Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.969585Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:42.969588Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:42.969590Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:42.969592Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:42.973455Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.035993Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.036373Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.036426Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.036488Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036519Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.036553Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036562Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036568Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036574Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.036577Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036580Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036582Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036586Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.036589Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036594Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036608Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036639Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.036646Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036650Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036655Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.036659Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.036663Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.036665Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.036685Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.037358Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.051319Z INFO iox_query::query_log: query when="received" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 success=false running=true cancelled=false
2025-02-13T13:48:43.051750Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-13T13:48:43.052137Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.052180Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.052189Z DEBUG iox_query::exec::context: planning SQL query text=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.052246Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052255Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.052288Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052297Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052302Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052308Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.052311Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052314Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052317Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052320Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.052322Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052327Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052340Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052370Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.052377Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052380Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052383Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.052387Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.052391Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.052393Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.052410Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.053292Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Analyze [plan_type:Utf8, plan:Utf8]
Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-13T13:48:43.059450Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.060079Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.060133Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.062239Z DEBUG datafusion_optimizer::utils: type_coercion:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.062376Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.064994Z DEBUG datafusion_optimizer::utils: extract_sleep:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.065622Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.065666Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.065742Z DEBUG datafusion_optimizer::analyzer: Analyzer took 11 ms
2025-02-13T13:48:43.066531Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.068202Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-13T13:48:43.070522Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.070588Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.070645Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-13T13:48:43.070686Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-13T13:48:43.070967Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-13T13:48:43.071006Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-13T13:48:43.071017Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-13T13:48:43.071025Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-13T13:48:43.071030Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-13T13:48:43.071044Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-13T13:48:43.071158Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.071194Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-13T13:48:43.071202Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-13T13:48:43.071208Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-13T13:48:43.071220Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-13T13:48:43.071225Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-13T13:48:43.071230Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.071284Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-13T13:48:43.071326Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-13T13:48:43.071351Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.071432Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.071469Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.071478Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-13T13:48:43.071582Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072873Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-13T13:48:43.072895Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072911Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072918Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-13T13:48:43.072934Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.072950Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.072968Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-13T13:48:43.072975Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-13T13:48:43.072980Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-13T13:48:43.072985Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-13T13:48:43.072988Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-13T13:48:43.073007Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-13T13:48:43.073012Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-13T13:48:43.073015Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-13T13:48:43.073019Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.073038Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-13T13:48:43.073043Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-13T13:48:43.073046Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-13T13:48:43.073049Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-13T13:48:43.073052Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-13T13:48:43.073055Z DEBUG datafusion_optimizer::utils: push_down_limit:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073061Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-13T13:48:43.073063Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-13T13:48:43.073072Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073100Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.073106Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.073109Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-13T13:48:43.073121Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073143Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-13T13:48:43.073147Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073157Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073161Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-13T13:48:43.073170Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073183Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.073201Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-13T13:48:43.073205Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-13T13:48:43.073210Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-13T13:48:43.073212Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-13T13:48:43.073215Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-13T13:48:43.073217Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-13T13:48:43.073220Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-13T13:48:43.073223Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-13T13:48:43.073226Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.073228Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-13T13:48:43.073231Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-13T13:48:43.073234Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-13T13:48:43.073236Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-13T13:48:43.073239Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-13T13:48:43.073261Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-13T13:48:43.073265Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-13T13:48:43.073268Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-13T13:48:43.073278Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073298Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.073317Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.073323Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-13T13:48:43.073335Z DEBUG datafusion_optimizer::utils: optimize_projections:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073356Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-13T13:48:43.073360Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073367Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-13T13:48:43.073368Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Analyze
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.073371Z DEBUG datafusion_optimizer::optimizer: Optimizer took 7 ms
2025-02-13T13:48:43.073915Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T13:48:43.074339Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T13:48:43.079436Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T13:48:43.087144Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-13T13:48:43.091898Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.091953Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=AnalyzeExec verbose=false
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.092079Z INFO iox_query::query_log: query when="planned" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.040758393 success=false running=true cancelled=false
2025-02-13T13:48:43.092827Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T13:48:43.092839Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) trace=""
2025-02-13T13:48:43.092989Z INFO iox_query::query_log: query when="permit" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.040758393 permit_duration_secs=0.000914971 success=false running=true cancelled=false
2025-02-13T13:48:43.099646Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T13:48:43.099711Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T13:48:43.103607Z INFO iox_query::query_log: query when="success" id=9be49d33-64a1-467d-ab05-f2fc2f4e2187 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.051315100+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.040758393 permit_duration_secs=0.000914971 execute_duration_secs=0.010610262 end2end_duration_secs=0.052290831 compute_duration_secs=0.007125808 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
2025-02-13T13:48:43.136402Z INFO service_grpc_flight: DoAction request namespace_name=mydb action_type=CreatePreparedStatement cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10 trace=
2025-02-13T13:48:43.136841Z DEBUG flightsql::planner: Handling flightsql do_action namespace_name=mydb cmd=ActionCreatePreparedStatementRequestselect time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.136864Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.136871Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.136975Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137011Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.137018Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137023Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137027Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137030Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.137032Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137033Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137035Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137037Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.137038Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137042Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137059Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137078Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.137081Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137084Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137086Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.137088Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.137091Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.137093Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.137113Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.140807Z INFO service_grpc_flight: GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.141084Z DEBUG flightsql::planner: Handling flightsql get_flight_info (get schema) namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.141128Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.141176Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141210Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.141219Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141250Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141258Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141264Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.141267Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141270Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141273Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141276Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.141278Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141282Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141302Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141332Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.141338Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141343Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141346Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.141350Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.141353Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.141356Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.141372Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.141581Z DEBUG service_grpc_flight: Completed GetFlightInfo request namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=
2025-02-13T13:48:43.143896Z INFO iox_query::query_log: query when="received" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 success=false running=true cancelled=false
2025-02-13T13:48:43.143938Z INFO service_grpc_flight: DoGet request namespace_name=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace="" variant="flightsql"
2025-02-13T13:48:43.144175Z DEBUG flightsql::planner: Handling flightsql do_get namespace_name=mydb cmd=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.144206Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-13T13:48:43.144212Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T13:48:43.144267Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144291Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.144297Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144301Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144305Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144309Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })
2025-02-13T13:48:43.144310Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144312Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144314Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144315Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })
2025-02-13T13:48:43.144317Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "from", quote_style: None, keyword: FROM }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144320Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144331Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144349Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })
2025-02-13T13:48:43.144352Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Word(Word { value: "desc", quote_style: None, keyword: DESC }), location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144355Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144357Z DEBUG sqlparser::parser: parsing expr
2025-02-13T13:48:43.144360Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))
2025-02-13T13:48:43.144362Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }
2025-02-13T13:48:43.144363Z DEBUG sqlparser::parser: next precedence: 0
2025-02-13T13:48:43.144379Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T13:48:43.144501Z DEBUG iox_query::exec::context: create_physical_plan: initial plan text=Limit: skip=0, fetch=10 [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Sort: home.time DESC NULLS FIRST [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
Projection: home.time, home.location, home.value [time:Timestamp(Nanosecond, None), location:Dictionary(Int32, Utf8), value:Float64;N]
TableScan: home [location:Dictionary(Int32, Utf8), time:Timestamp(Nanosecond, None), value:Float64;N]
2025-02-13T13:48:43.144552Z DEBUG datafusion_optimizer::utils: inline_table_scan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144572Z DEBUG datafusion_optimizer::utils: expand_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144582Z DEBUG datafusion_optimizer::utils: resolve_grouping_function:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144626Z DEBUG datafusion_optimizer::utils: type_coercion:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144660Z DEBUG datafusion_optimizer::utils: count_wildcard_rule:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144679Z DEBUG datafusion_optimizer::utils: extract_sleep:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144688Z DEBUG datafusion_optimizer::utils: handle_gap_fill:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144693Z DEBUG datafusion_optimizer::utils: Final analyzed plan:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144698Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms
2025-02-13T13:48:43.144708Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144720Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)
2025-02-13T13:48:43.144745Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144778Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.144799Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)
2025-02-13T13:48:43.144804Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)
2025-02-13T13:48:43.144811Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)
2025-02-13T13:48:43.144815Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)
2025-02-13T13:48:43.144818Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)
2025-02-13T13:48:43.144823Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)
2025-02-13T13:48:43.144825Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)
2025-02-13T13:48:43.144829Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)
2025-02-13T13:48:43.144836Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.144841Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)
2025-02-13T13:48:43.144844Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)
2025-02-13T13:48:43.144848Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)
2025-02-13T13:48:43.144851Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)
2025-02-13T13:48:43.144854Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)
2025-02-13T13:48:43.144858Z DEBUG datafusion_optimizer::utils: push_down_limit:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144865Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)
2025-02-13T13:48:43.144868Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)
2025-02-13T13:48:43.144878Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home
2025-02-13T13:48:43.144908Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)
2025-02-13T13:48:43.144914Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)
2025-02-13T13:48:43.144917Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)
2025-02-13T13:48:43.144936Z DEBUG datafusion_optimizer::utils: optimize_projections:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145003Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)
2025-02-13T13:48:43.145017Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 0):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145026Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 1):
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145032Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)
2025-02-13T13:48:43.145043Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Limit: skip=0, fetch=10
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145055Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.145058Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)
2025-02-13T13:48:43.145061Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)
2025-02-13T13:48:43.145064Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)
2025-02-13T13:48:43.145067Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)
2025-02-13T13:48:43.145070Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)
2025-02-13T13:48:43.145073Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)
2025-02-13T13:48:43.145076Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)
2025-02-13T13:48:43.145078Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)
2025-02-13T13:48:43.145081Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.145085Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)
2025-02-13T13:48:43.145088Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)
2025-02-13T13:48:43.145090Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)
2025-02-13T13:48:43.145093Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)
2025-02-13T13:48:43.145096Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)
2025-02-13T13:48:43.145100Z DEBUG datafusion_optimizer::utils: push_down_limit:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145103Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)
2025-02-13T13:48:43.145106Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)
2025-02-13T13:48:43.145113Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145121Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)
2025-02-13T13:48:43.145123Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)
2025-02-13T13:48:43.145128Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)
2025-02-13T13:48:43.145141Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145146Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)
2025-02-13T13:48:43.145148Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 1):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145152Z DEBUG datafusion_optimizer::utils: Optimizer input (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145155Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)
2025-02-13T13:48:43.145161Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145169Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.145172Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)
2025-02-13T13:48:43.145174Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)
2025-02-13T13:48:43.145177Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)
2025-02-13T13:48:43.145179Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)
2025-02-13T13:48:43.145182Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)
2025-02-13T13:48:43.145184Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)
2025-02-13T13:48:43.145187Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)
2025-02-13T13:48:43.145189Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)
2025-02-13T13:48:43.145193Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.145195Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)
2025-02-13T13:48:43.145198Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)
2025-02-13T13:48:43.145200Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)
2025-02-13T13:48:43.145202Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)
2025-02-13T13:48:43.145205Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)
2025-02-13T13:48:43.145207Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)
2025-02-13T13:48:43.145209Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)
2025-02-13T13:48:43.145212Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)
2025-02-13T13:48:43.145218Z DEBUG datafusion_optimizer::utils: simplify_expressions:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145230Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)
2025-02-13T13:48:43.145233Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)
2025-02-13T13:48:43.145235Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)
2025-02-13T13:48:43.145241Z DEBUG datafusion_optimizer::utils: optimize_projections:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145248Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)
2025-02-13T13:48:43.145249Z DEBUG datafusion_optimizer::utils: Optimized plan (pass 2):
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145253Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes
2025-02-13T13:48:43.145255Z DEBUG datafusion_optimizer::utils: Final optimized plan:
Sort: home.time DESC NULLS FIRST, fetch=10
Projection: home.time, home.location, home.value
TableScan: home projection=[location, time, value]
2025-02-13T13:48:43.145258Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms
2025-02-13T13:48:43.145265Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T13:48:43.145287Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T13:48:43.145333Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T13:48:43.145436Z DEBUG datafusion::physical_planner: Input physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@1 as time, location@0 as location, value@2 as value]
ProjectionExec: expr=[location@0 as location, time@1 as time, value@2 as value]
DeduplicateExec: [location@0 ASC,time@1 ASC]
UnionExec
RecordBatchesExec: chunks=1, projection=[location, time, value, __chunk_order]
2025-02-13T13:48:43.145695Z DEBUG datafusion::physical_planner: Optimized physical plan:
SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.145726Z DEBUG iox_query::exec::context: create_physical_plan: plan to run text=SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value]
DeduplicateExec: [location@1 ASC,time@0 ASC]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order]
2025-02-13T13:48:43.145803Z INFO iox_query::query_log: query when="planned" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001907559 success=false running=true cancelled=false
2025-02-13T13:48:43.145970Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T13:48:43.146058Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T13:48:43.146089Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T13:48:43.146142Z DEBUG service_grpc_flight: Planned DoGet request database=mydb query=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) trace=""
2025-02-13T13:48:43.146243Z INFO iox_query::query_log: query when="permit" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001907559 permit_duration_secs=0.000442001 success=false running=true cancelled=false
2025-02-13T13:48:43.147401Z INFO iox_query::query_log: query when="success" id=c624bb2d-8161-4f42-88a8-ffb136855ba9 namespace_id=0 namespace_name="influxdb3 oss" query_type="flightsql" query_text=CommandPreparedStatementQueryPrepared(select time,location,value from home order by time desc limit 10) query_params=Params { } issue_time=2025-02-13T13:48:43.143892745+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001907559 permit_duration_secs=0.000442001 execute_duration_secs=0.001151304 end2end_duration_secs=0.003507624 compute_duration_secs=8.3877e-5 max_memory=1942 ingester_metrics=IngesterMetrics { latency_to_plan = 0ns, latency_to_full_data = 0ns, response_rows = 0, partition_count = 0, response_size = 0 } success=true running=false cancelled=false
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.010 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 2.924 s <<< FAILURE!
java.lang.AssertionError:
Expected: is <1739454510705L>
but: was <1739396910705L>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:76)
at io.github.linghengqian.TimeDifferenceTest.test(TimeDifferenceTest.java:37)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TimeDifferenceTest.test:37->queryDataByJdbcDriver:76
Expected: is <1739454510705L>
but: was <1739396910705L>
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.891 s (Wall Clock)
[INFO] Finished at: 2025-02-13T21:48:44+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test (default-test) on project influxdb-3-core-jdbc-test: There are test failures.
[ERROR]
[ERROR] See /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException |
You can see from the explain plan that there is one row outputted:
So that's good. Can you do the same to output the regular query result? i.e., without |
Original data set of `EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10`🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘plan_type plan
----------------------------------
Plan with Metrics SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=50.563µs, row_replacements=1]
ProjectionExec: expr=[time@0 as time, location@1 as location, value@2 as value], metrics=[output_rows=1, elapsed_compute=1.541µs]
DeduplicateExec: [location@1 ASC,time@0 ASC], metrics=[output_rows=1, elapsed_compute=39.57µs, num_dupes=0]
SortExec: expr=[location@1 ASC,time@0 ASC,__chunk_order@3 ASC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=119.338µs, spill_count=0, spilled_bytes=0, spilled_rows=0]
RecordBatchesExec: chunks=1, projection=[time, location, value, __chunk_order], metrics=[output_rows=1, elapsed_compute=1.801µs] Original data set of `select time,location,value from home order by time desc limit 10`🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘time location value
----------------------------------
2025-02-13 06:49:52.112697111 London 30.01 container log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘
Unit test complete error log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘
|
I suspect the issue is related to time-zone conversion. I wonder if you were to try some other methods to convert the You may know the options better than I, but instead of using assertThat(resultSet.getTimestamp("time").getTime(), is(magicTime.toEpochMilli())); Perhaps try |
assertThat(resultSet.getTimestamp("time").toInstant(), is(magicTime)); Unit test complete error log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘$ ./mvnw -T 1C -Dtest=TimeDifferenceTest clean test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 16
[INFO]
[INFO] ----------< io.github.linghengqian:influxdb-3-core-jdbc-test >----------
[INFO] Building influxdb-3-core-jdbc-test 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ influxdb-3-core-jdbc-test ---
[INFO] Deleting /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/main/resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ influxdb-3-core-jdbc-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ influxdb-3-core-jdbc-test ---
[INFO] skip non existing resourceDirectory /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ influxdb-3-core-jdbc-test ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 7 source files with javac [debug target 21] to target/test-classes
[INFO]
[INFO] --- surefire:3.5.2:test (default-test) @ influxdb-3-core-jdbc-test ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.github.linghengqian.TimeDifferenceTest
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2月 14, 2025 2:21:08 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.BaseAllocator <clinit>
信息: Debug mode disabled. Enable with the VM option -Darrow.memory.debug.allocator=true.
2月 14, 2025 2:21:08 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.DefaultAllocationManagerOption getDefaultAllocationManagerFactory
信息: allocation manager type not specified, using netty as the default type
2月 14, 2025 2:21:08 下午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.CheckAllocator reportResult
信息: Using DefaultAllocationManager at memory/netty/DefaultAllocationManagerFactory.class
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.742 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 3.677 s <<< FAILURE!
java.lang.AssertionError:
Expected: is <2025-02-14T06:20:56.358247468Z>
but: was <2025-02-13T14:20:56.358247468Z>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:62)
at io.github.linghengqian.TimeDifferenceTest.test(TimeDifferenceTest.java:39)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TimeDifferenceTest.test:39->queryDataByJdbcDriver:62
Expected: is <2025-02-14T06:20:56.358247468Z>
but: was <2025-02-13T14:20:56.358247468Z>
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.117 s (Wall Clock)
[INFO] Finished at: 2025-02-14T14:21:10+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.2:test (default-test) on project influxdb-3-core-jdbc-test: There are test failures.
[ERROR]
[ERROR] See /home/linghengqian/TwinklingLiftWorks/git/public/influxdb-3-core-jdbc-test/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException |
assertThat(resultSet.getObject("time", Instant.class), is(magicTime)); java.lang.ClassCastException: Cannot cast java.sql.Timestamp to java.time.Instant
at java.base/java.lang.Class.cast(Class.java:4090)
at org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessor.getObject(ArrowFlightJdbcAccessor.java:248)
at org.apache.arrow.driver.jdbc.shaded.org.apache.calcite.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:1056)
at com.zaxxer.hikari.pool.HikariProxyResultSet.getObject(HikariProxyResultSet.java)
at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:62)
at io.github.linghengqian.TimeDifferenceTest.test(TimeDifferenceTest.java:39)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
|
Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.
SDKMAN!
andDocker CE
in advance, then,Click me to view the core logic of the unit test🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘
java.time.Instant
, which is a fixed point on the continuous timeline. The timestamp of the fixed time is inserted through the InfluxDB Client, and then the same timestamp can be obtained by executing SQL to the InfluxDB Client. However, executing the same SQL through the Flight JDBC Driver will obtain a timestamp that is inconsistent with the original one. That is, this assertion will fail.InfluxDBClient
should document the existence ofNanosecondConverter
InfluxCommunity/influxdb3-java#222 .Expected behaviour:
Describe what you expected to happen.
Actual behaviour:
Describe What actually happened.
Environment info:
RUSTFLAGS
.quay.io/influxdb/influxdb3-core:911ba92ab4133e75fe2a420e16ed9cb4cf32196f
directly in my unit test.uname -srm
or similar and copy the output here (we want to know your OS, architecture etc).Linux 5.15.167.4-microsoft-standard-WSL2 x86_64
Asia/Shanghai
.Config:
Copy any non-default config values here or attach the full config as a gist or file.
Logs:
Include snippet of errors in logs or stack traces here.
Sometimes you can get useful information by running the program with the
RUST_BACKTRACE=full
environment variable.Finally, the IOx server has a
-vv
for verbose logging.Click me to view the complete Log🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘
The text was updated successfully, but these errors were encountered: