Skip to content
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

Open
linghengqian opened this issue Feb 8, 2025 · 15 comments

Comments

@linghengqian
Copy link

linghengqian commented Feb 8, 2025

Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.

sdk install java 21.0.6-ms
git clone [email protected]:linghengqian/influxdb-3-core-jdbc-test.git
cd ./influxdb-3-core-jdbc-test/
sdk use java 21.0.6-ms
./mvnw -T 1C -Dtest=TimeDifferenceTest clean test
Click me to view the core logic of the unit test🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘
@Testcontainers
public class TimeDifferenceTest {
    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);
    @Test
    void test() throws Exception {
        try (InfluxDBClient client = InfluxDBClient.getInstance(
                "http://" + container.getHost() + ":" + container.getMappedPort(8181),
                null,
                "mydb")) {
            writeData(client);
            queryDataByInfluxDbClient(client);
            queryDataByJdbcDriver();
        }
    }
    private void writeData(InfluxDBClient client) {
        Point point = Point.measurement("home")
                .setTag("location", "London")
                .setField("value", 30.01)
                .setTimestamp(magicTime);
        client.writePoint(point);
    }
    private void queryDataByInfluxDbClient(InfluxDBClient client) {
        try (Stream<PointValues> stream = client.queryPoints("select time,location,value from home order by time desc limit 10",
                QueryOptions.DEFAULTS)) {
            List<PointValues> list = stream.toList();
            assertThat(list.size(), is(1));
            PointValues p = list.getFirst();
            assertThat(p.getField("value", Double.class), is(30.01));
            assertThat(p.getTag("location"), is("London"));
            assertThat(p.getTimestamp(), is(NanosecondConverter.convert(magicTime, WritePrecision.NS)));
        }
    }
    private void queryDataByJdbcDriver() throws SQLException {
        HikariConfig hikariConfig = new HikariConfig();
        hikariConfig.setJdbcUrl("jdbc:arrow-flight-sql://" + container.getHost() + ":" + container.getMappedPort(8181) + "/?useEncryption=0&database=mydb");
        try (HikariDataSource hikariDataSource = new HikariDataSource(hikariConfig);
             Connection connection = hikariDataSource.getConnection()) {
            ResultSet resultSet = connection.createStatement().executeQuery("select time,location,value from home order by time desc limit 10");
            assertThat(resultSet.next(), is(true));
            assertThat(resultSet.getString("location"), is("London"));
            assertThat(resultSet.getString("value"), is("30.01"));
            assertThat(Timestamp.from(magicTime).getTime(), is(magicTime.toEpochMilli()));
            assertThat(resultSet.getString("time"), notNullValue());
            assertThat(resultSet.getTimestamp("time").getTime(), is(magicTime.toEpochMilli()));
        }
    }
}
  • Obviously, there is no concept of ZoneId or Offset for 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.
assertThat(resultSet.getTimestamp("time").getTime(), is(magicTime.toEpochMilli()));

Expected behaviour:
Describe what you expected to happen.

  • Timestamps queried from InfluxDB 3 Core via the JDBC driver are consistent with the inserted timestamps.

Actual behaviour:
Describe What actually happened.

  • Timestamps queried from InfluxDB 3 Core via JDBC Driver are inconsistent with those inserted.

Environment info:

  • Please provide the command you used to build the project, including any RUSTFLAGS.
    • It seems that this is not needed, I use the Docker Image quay.io/influxdb/influxdb3-core:911ba92ab4133e75fe2a420e16ed9cb4cf32196f directly in my unit test.
  • System info: Run 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
  • If you're running IOx in a containerised environment then details about that would be helpful.
$ docker --version
Docker version 27.5.1, build 9f9e405
  • Other relevant environment details: disk info, hardware setup etc.
    • Considering that I execute unit tests under WSL, it’s hard to say there’s anything special about this. However, my WSL time zone environment is set to Asia/Shanghai.

Config:
Copy any non-default config values here or attach the full config as a gist or file.

  • It doesn't seem necessary.

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.

  • The unit test will dynamically create a Docker container, so I think I only need to provide the log for the unit test.
Click me to view the complete 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月 08, 2025 11:51:56 上午 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月 08, 2025 11:51:56 上午 org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.memory.DefaultAllocationManagerOption getDefaultAllocationManagerFactory
信息: allocation manager type not specified, using netty as the default type
2月 08, 2025 11:51:56 上午 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.760 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 3.696 s <<< FAILURE!
java.lang.AssertionError: 

Expected: is <1738986704151L>
     but: was <1738929104151L>
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
        at io.github.linghengqian.TimeDifferenceTest.queryDataByJdbcDriver(TimeDifferenceTest.java:83)
        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:83 
Expected: is <1738986704151L>
     but: was <1738929104151L>
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.060 s (Wall Clock)
[INFO] Finished at: 2025-02-08T11:51:58+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
@hiltontj
Copy link
Contributor

@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 (1738986704151 - 1738929104151 = 57600000), and from what I can tell you are writing to / reading from a influxdb3 server that is not running in isolation in the test. So, the query may be producing a result set from writes done in other test runs or otherwise.

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 WHERE clause in your query to ensure that the result you are asserting on is the row that was written in.

@linghengqian
Copy link
Author

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?

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

what I can tell you are writing to / reading from a influxdb3 server that is not running in isolation in the test. So, the query may be producing a result set from writes done in other test runs or otherwise.

  • I honestly don't understand this statement. I am not sharing the same Influxdb 3 Core instance between unit tests. Each unit test is creating a separate Docker container of Influxdb 3 Core instance. What does this mean?

@hiltontj
Copy link
Contributor

I honestly don't understand this statement. I am not sharing the same Influxdb 3 Core instance between unit tests. Each unit test is creating a separate Docker container of Influxdb 3 Core instance. What does this mean?

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 --data-dir /home/influxdb3/.influxdb3 is on the container and therefore only lives for the lifetime of the test.

You might be able to try adding some more verbose logs to the server output with your serve command on the container, e.g., using the -v argument

serve --node-id local01 [...] -v

And then, if possible, share the log output here. There may be some clues there.

@linghengqian
Copy link
Author

linghengqian commented Feb 10, 2025

You might be able to try adding some more verbose logs to the server output with your serve command on the container, e.g., using the -v argument

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
  • Of course, I know that the default time zone of the Docker Image of influxdb 3 core is UTC. But I still don't understand why there is such a difference.

@mgattozzi
Copy link
Contributor

mgattozzi commented Feb 10, 2025

@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 serve --node-id local01 --object-store memory so that they don't accidentally use the same files on disk. If you want to store them on disk still then randomizing the node-id so they don't overlap is essential

@linghengqian
Copy link
Author

linghengqian commented Feb 11, 2025

If you want to be really sure that they do not share state between invocations I would use the arguments serve --node-id local01 --object-store memory so that they don't accidentally use the same files on disk.

  • I don't understand why this would result in the same data files on disk being used, my unit tests don't actually mount any volumes on the host, /home/influxdb3/.influxdb3 is actually a path inside the container.

  • I have switched the unit test to use memory as object storage in linghengqian/influxdb-3-core-jdbc-test@536a562 , but the timestamp obtained from the query is still wrong.

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

@hiltontj
Copy link
Contributor

@linghengqian a couple more things that you might be able to try:

  • use -vv for DEBUG logging
  • try an EXPLAIN ANALYZE query, i.e., EXPLAIN ANALYZE <original query> and capture the output of that

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 time value, so what is written in should be what is queried out without the need for casting.

FWIW influxdb3 assumes the written time is UTC, and stores as UTC.

One thing I noticed was that the log line for the WAL flush:

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

Specifically, min_timestamp_ns=1739244795878445031 is the same as the expected value in your test:

Expected: is <1739244795878L>
     but: was <1739187195878L>

It may be helpful to look at the actual query result to see what raw timestamps are there.

@linghengqian
Copy link
Author

  • I have updated the unit tests to use -vv and execute EXPLAIN ANALYZE at linghengqian/influxdb-3-core-jdbc-test@041050b . I also removed query assertions on the influxdb3 java client that were causing the log to become more verbose. It's hard to say that I know anything special about these logs.
  • Does this mean that the bug is somewhere inside apache arrow ?
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

@hiltontj
Copy link
Contributor

It's hard to say that I know anything special about these logs.

I agree, the logs don't reveal much to me either.

It may be helpful to look at the actual query result to see what raw timestamps are there.

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:

  • How many rows are returned
  • What the raw timestamps are to rule out any time zone conversions that might be done implicitly by the InfluxDB/SQL clients and to see if they are actually different from what was written in

@linghengqian
Copy link
Author

linghengqian commented Feb 13, 2025

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:

  • I thought about it and found that without a third-party library, the original data set that prints EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10 needs to be processed manually. I made the output of EXPLAIN ANALYZE similar to CSV in linghengqian/influxdb-3-core-jdbc-test@0542a18 .
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

@hiltontj
Copy link
Contributor

How many rows are returned

You can see from the explain plan that there is one row outputted:

SortExec: TopK(fetch=10), expr=[time@0 DESC], preserve_partitioning=[false], metrics=[output_rows=1, elapsed_compute=1.319786ms, row_replacements=1]
                                                                                      ^^^^^^^^^^^^^

So that's good.

Can you do the same to output the regular query result? i.e., without EXPLAN ANALYZE, to see the raw timestamp.

@linghengqian
Copy link
Author

  • I will say that the default timezone for the influxdb 3 core docker container is UTC, while my WSL instance is set to Asia/Shanghai in East 8, which is a 16 hour difference which is a bit weird. Refer to my changes at linghengqian/influxdb-3-core-jdbc-test@438e7d0 .
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🥯🥨🍟🧂🥖🥚🍔🦪🍜🍘
2025-02-13T14:50:03.396689Z  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=f661ced9-c482-4ea4-b7d3-c1d87c61d430 num_cpus=16
2025-02-13T14:50:03.396755Z DEBUG influxdb3::commands::serve: build configuration build_malloc_conf=
2025-02-13T14:50:03.396973Z  INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-13T14:50:03.397038Z  INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-13T14:50:03.397939Z DEBUG influxdb3_cache::parquet_cache: >>> test: background cache pruning running
2025-02-13T14:50:03.439976Z DEBUG datafusion_execution::memory_pool::pool: Created new GreedyMemoryPool(pool_size=8589934592)    
2025-02-13T14:50:03.440668Z  INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="082fb6d8-903f-40f4-a0cc-a568029ee7ae"
2025-02-13T14:50:03.440784Z  INFO influxdb3::commands::serve: catalog initialized instance_id="082fb6d8-903f-40f4-a0cc-a568029ee7ae"
2025-02-13T14:50:03.440868Z DEBUG influxdb3_wal::object_store: >>> replaying
2025-02-13T14:50:03.440958Z  INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-13T14:50:03.440967Z DEBUG influxdb3::commands::serve: setting up background buffer checker mem_threshold_bytes=11441879859
2025-02-13T14:50:03.440973Z  INFO influxdb3::commands::serve: setting up telemetry store
2025-02-13T14:50:03.440977Z DEBUG influxdb3::commands::serve: Initializing TelemetryStore with upload enabled for https://telemetry.v3.influxdata.com.
2025-02-13T14:50:03.440980Z DEBUG influxdb3_telemetry::store: Initializing telemetry store instance_id="082fb6d8-903f-40f4-a0cc-a568029ee7ae" os="linux" influx_version="influxdb3-0.1.0" storage_type="memory" cores=16
2025-02-13T14:50:03.442293Z DEBUG influxdb3_write::write_buffer: checking buffer size and snapshotting current_buffer_size_bytes=0 memory_threshold_bytes=11441879859
2025-02-13T14:50:03.449274Z DEBUG influxdb3_telemetry::store: Snapshot write size in bytes min=0 max=0 avg=0
2025-02-13T14:50:03.449320Z 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: "082fb6d8-903f-40f4-a0cc-a568029ee7ae", 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-13T14:50:03.453025Z DEBUG reqwest::connect: starting new connection: https://telemetry.v3.influxdata.com/    
2025-02-13T14:50:03.459556Z DEBUG hyper::client::connect::dns: resolving host="telemetry.v3.influxdata.com"
2025-02-13T14:50:03.463440Z DEBUG hyper::client::connect::http: connecting to 172.29.1.4:443
2025-02-13T14:50:03.464026Z DEBUG hyper::client::connect::http: connected to 172.29.1.4:443
2025-02-13T14:50:03.464164Z DEBUG rustls::client::hs: No cached session for DnsName("telemetry.v3.influxdata.com")    
2025-02-13T14:50:03.464252Z DEBUG rustls::client::hs: Not resuming any session    
2025-02-13T14:50:03.480334Z DEBUG influxdb3_telemetry::sampler: trying to sample data for cpu/memory cpu_used=0.0 mem_used=271400960
2025-02-13T14:50:03.480376Z 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-13T14:50:03.480383Z 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-13T14:50:03.636567Z  INFO influxdb3_server: startup time: 241ms address=0.0.0.0:8181
2025-02-13T14:50:03.837375Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_128_GCM_SHA256    
2025-02-13T14:50:03.837454Z DEBUG rustls::client::tls13: Not resuming    
2025-02-13T14:50:03.837643Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [ServerNameAck, Protocols([ProtocolName(6832)])]    
2025-02-13T14:50:03.837682Z DEBUG rustls::client::hs: ALPN protocol is Some(b"h2")    
2025-02-13T14:50:03.838169Z DEBUG hyper::client::pool: pooling idle connection for ("https", telemetry.v3.influxdata.com)
2025-02-13T14:50:04.165262Z 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:32773", "http2-settings": "AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA", "upgrade": "h2c", "content-type": "text/plain; charset=utf-8", "user-agent": "influxdb3-java/1.0.0"}, body: Body(Streaming) }
2025-02-13T14:50:04.165409Z  INFO influxdb3_server::http: write_lp to mydb
2025-02-13T14:50:04.167054Z DEBUG influxdb3_write::write_buffer: write_lp to mydb in writebuffer
2025-02-13T14:50:04.167106Z  INFO influxdb3_catalog::catalog: return new db mydb
2025-02-13T14:50:04.167239Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739458204167049431, 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-13T14:50:04.205183Z DEBUG influxdb3_telemetry::sender: Successfully sent telemetry data to server to endpoint="https://telemetry.v3.influxdata.com/telem"
2025-02-13T14:50:04.443062Z DEBUG influxdb3_wal::snapshot_tracker: >>> wal periods and snapshots wal_periods=[WalPeriod { wal_file_number: WalFileSequenceNumber(1), min_time: Timestamp(1739458192112697111), max_time: Timestamp(1739458204167049431) }] wal_periods_len=1 num_snapshots_after=900
2025-02-13T14:50:04.443140Z  INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739458192112697111 max_timestamp_ns=1739458204167049431 wal_file_number=1
2025-02-13T14:50:04.443214Z DEBUG influxdb3_wal::object_store: notify sent to buffer for wal file 1
2025-02-13T14:50:04.443222Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739458204167049431, 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-13T14:50:04.443333Z DEBUG influxdb3_server::http: Successfully processed request response=Response { status: 204, version: HTTP/1.1, headers: {}, body: Body(Empty) }
2025-02-13T14:50:05.045541Z  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-13T14:50:05.046083Z 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-13T14:50:05.046119Z DEBUG flightsql::planner: Creating prepared statement query=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.046127Z 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-13T14:50:05.046306Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046343Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.046363Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.046378Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046391Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046415Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.046420Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.046422Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046425Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046427Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.046429Z 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-13T14:50:05.046446Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046474Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046482Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.046484Z 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-13T14:50:05.046487Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046490Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046493Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.046497Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.046499Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046571Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.083490Z  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-13T14:50:05.084023Z 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-13T14:50:05.084062Z 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-13T14:50:05.084132Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084180Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.084220Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.084232Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084244Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084254Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.084259Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.084264Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084268Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084272Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.084274Z 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-13T14:50:05.084279Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084293Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084316Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.084320Z 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-13T14:50:05.084324Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084327Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084331Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.084334Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.084336Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084359Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.084597Z 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-13T14:50:05.095966Z  INFO iox_query::query_log: query when="received" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 success=false running=true cancelled=false
2025-02-13T14:50:05.096040Z  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-13T14:50:05.096324Z 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-13T14:50:05.096356Z 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-13T14:50:05.096363Z 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-13T14:50:05.096421Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096445Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.096452Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.096457Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096461Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096465Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.096467Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.096468Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096469Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096471Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.096472Z 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-13T14:50:05.096476Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096489Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096507Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.096511Z 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-13T14:50:05.096513Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096516Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096518Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.096521Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.096522Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096538Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.096682Z 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-13T14:50:05.096813Z 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-13T14:50:05.096858Z 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-13T14:50:05.096894Z 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-13T14:50:05.096946Z 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-13T14:50:05.096963Z 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-13T14:50:05.097003Z 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-13T14:50:05.097040Z 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-13T14:50:05.097048Z 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-13T14:50:05.097051Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms    
2025-02-13T14:50:05.097066Z 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-13T14:50:05.097110Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)    
2025-02-13T14:50:05.097161Z 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-13T14:50:05.097196Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.097207Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)    
2025-02-13T14:50:05.097213Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)    
2025-02-13T14:50:05.097220Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)    
2025-02-13T14:50:05.097224Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)    
2025-02-13T14:50:05.097228Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)    
2025-02-13T14:50:05.097233Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)    
2025-02-13T14:50:05.097235Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)    
2025-02-13T14:50:05.097239Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)    
2025-02-13T14:50:05.097254Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.097272Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)    
2025-02-13T14:50:05.097277Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)    
2025-02-13T14:50:05.097281Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)    
2025-02-13T14:50:05.097285Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)    
2025-02-13T14:50:05.097288Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)    
2025-02-13T14:50:05.097292Z 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-13T14:50:05.097314Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)    
2025-02-13T14:50:05.097320Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)    
2025-02-13T14:50:05.097332Z 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-13T14:50:05.097346Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.097351Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.097354Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)    
2025-02-13T14:50:05.097379Z 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-13T14:50:05.097416Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)    
2025-02-13T14:50:05.097419Z 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-13T14:50:05.097427Z 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-13T14:50:05.097431Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)    
2025-02-13T14:50:05.097444Z 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-13T14:50:05.097456Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.097476Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)    
2025-02-13T14:50:05.097482Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)    
2025-02-13T14:50:05.097486Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)    
2025-02-13T14:50:05.097489Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)    
2025-02-13T14:50:05.097492Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)    
2025-02-13T14:50:05.097496Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)    
2025-02-13T14:50:05.097499Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)    
2025-02-13T14:50:05.097501Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)    
2025-02-13T14:50:05.097504Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.097507Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)    
2025-02-13T14:50:05.097510Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)    
2025-02-13T14:50:05.097513Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)    
2025-02-13T14:50:05.097516Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)    
2025-02-13T14:50:05.097519Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)    
2025-02-13T14:50:05.097522Z 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-13T14:50:05.097528Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)    
2025-02-13T14:50:05.097530Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)    
2025-02-13T14:50:05.097539Z 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-13T14:50:05.097550Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.097554Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.097556Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)    
2025-02-13T14:50:05.097566Z 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-13T14:50:05.097588Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)    
2025-02-13T14:50:05.097592Z 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-13T14:50:05.097598Z 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-13T14:50:05.097602Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)    
2025-02-13T14:50:05.097611Z 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-13T14:50:05.097622Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.097624Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)    
2025-02-13T14:50:05.097627Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)    
2025-02-13T14:50:05.097630Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)    
2025-02-13T14:50:05.097633Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)    
2025-02-13T14:50:05.097635Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)    
2025-02-13T14:50:05.097638Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)    
2025-02-13T14:50:05.097641Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)    
2025-02-13T14:50:05.097643Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)    
2025-02-13T14:50:05.097646Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.097650Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)    
2025-02-13T14:50:05.097653Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)    
2025-02-13T14:50:05.097656Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)    
2025-02-13T14:50:05.097658Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)    
2025-02-13T14:50:05.097661Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)    
2025-02-13T14:50:05.097666Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)    
2025-02-13T14:50:05.097669Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)    
2025-02-13T14:50:05.097671Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)    
2025-02-13T14:50:05.097678Z 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-13T14:50:05.097689Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.097692Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.097695Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)    
2025-02-13T14:50:05.097704Z 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-13T14:50:05.097725Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)    
2025-02-13T14:50:05.097730Z 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-13T14:50:05.097736Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes    
2025-02-13T14:50:05.097738Z 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-13T14:50:05.097740Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms    
2025-02-13T14:50:05.097762Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T14:50:05.097777Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T14:50:05.097851Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T14:50:05.098028Z 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-13T14:50:05.098387Z 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-13T14:50:05.098424Z 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-13T14:50:05.098550Z  INFO iox_query::query_log: query when="planned" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002583118 success=false running=true cancelled=false
2025-02-13T14:50:05.098825Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T14:50:05.098868Z 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-13T14:50:05.098956Z  INFO iox_query::query_log: query when="permit" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002583118 permit_duration_secs=0.000410185 success=false running=true cancelled=false
2025-02-13T14:50:05.099082Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T14:50:05.099136Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T14:50:05.099496Z  INFO iox_query::query_log: query when="success" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002583118 permit_duration_secs=0.000410185 execute_duration_secs=0.000534408 end2end_duration_secs=0.003533051 compute_duration_secs=0.000212813 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-13T14:50:05.142753Z  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-13T14:50:05.145225Z 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-13T14:50:05.145290Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.145314Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.145773Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.145840Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.145872Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.145917Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.145945Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.145955Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.145957Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.145959Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.145963Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.145966Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.145968Z 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-13T14:50:05.146008Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.146088Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.146126Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.146132Z 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-13T14:50:05.146137Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.146143Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.146158Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.146186Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.146190Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.146357Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.151691Z  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-13T14:50:05.152238Z 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-13T14:50:05.152265Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.152342Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152369Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.152378Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.152385Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152388Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152393Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.152395Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.152396Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152397Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152399Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.152401Z 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-13T14:50:05.152405Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152420Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152440Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.152444Z 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-13T14:50:05.152447Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152450Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152453Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.152457Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.152458Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152479Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.152727Z 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-13T14:50:05.156427Z  INFO iox_query::query_log: query when="received" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 success=false running=true cancelled=false
2025-02-13T14:50:05.156461Z  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-13T14:50:05.156638Z 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-13T14:50:05.156659Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-13T14:50:05.156665Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.156701Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156707Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.156710Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.156713Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156716Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156719Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.156721Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.156722Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156723Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156725Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.156726Z 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-13T14:50:05.156729Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156737Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156739Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.156741Z 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-13T14:50:05.156742Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156744Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156746Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.156749Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.156750Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156761Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.156857Z 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-13T14:50:05.156908Z 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-13T14:50:05.156929Z 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-13T14:50:05.156940Z 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-13T14:50:05.156965Z 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-13T14:50:05.156978Z 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-13T14:50:05.156993Z 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-13T14:50:05.157003Z 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-13T14:50:05.157008Z 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-13T14:50:05.157010Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms    
2025-02-13T14:50:05.157021Z 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-13T14:50:05.157051Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)    
2025-02-13T14:50:05.157084Z 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-13T14:50:05.157102Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.157106Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)    
2025-02-13T14:50:05.157109Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)    
2025-02-13T14:50:05.157116Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)    
2025-02-13T14:50:05.157120Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)    
2025-02-13T14:50:05.157123Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)    
2025-02-13T14:50:05.157128Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)    
2025-02-13T14:50:05.157130Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)    
2025-02-13T14:50:05.157134Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)    
2025-02-13T14:50:05.157142Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.157149Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)    
2025-02-13T14:50:05.157152Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)    
2025-02-13T14:50:05.157155Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)    
2025-02-13T14:50:05.157158Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)    
2025-02-13T14:50:05.157161Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)    
2025-02-13T14:50:05.157175Z 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-13T14:50:05.157199Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)    
2025-02-13T14:50:05.157205Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)    
2025-02-13T14:50:05.157217Z 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-13T14:50:05.157230Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.157234Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.157237Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)    
2025-02-13T14:50:05.157258Z 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-13T14:50:05.157271Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)    
2025-02-13T14:50:05.157273Z 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-13T14:50:05.157278Z 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-13T14:50:05.157282Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)    
2025-02-13T14:50:05.157290Z 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-13T14:50:05.157300Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.157303Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)    
2025-02-13T14:50:05.157305Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)    
2025-02-13T14:50:05.157309Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)    
2025-02-13T14:50:05.157312Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)    
2025-02-13T14:50:05.157314Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)    
2025-02-13T14:50:05.157317Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)    
2025-02-13T14:50:05.157320Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)    
2025-02-13T14:50:05.157322Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)    
2025-02-13T14:50:05.157325Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.157327Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)    
2025-02-13T14:50:05.157330Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)    
2025-02-13T14:50:05.157333Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)    
2025-02-13T14:50:05.157335Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)    
2025-02-13T14:50:05.157338Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)    
2025-02-13T14:50:05.157341Z 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-13T14:50:05.157344Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)    
2025-02-13T14:50:05.157347Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)    
2025-02-13T14:50:05.157353Z 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-13T14:50:05.157360Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.157363Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.157365Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)    
2025-02-13T14:50:05.157371Z 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-13T14:50:05.157375Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)    
2025-02-13T14:50:05.157377Z 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-13T14:50:05.157381Z 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-13T14:50:05.157384Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)    
2025-02-13T14:50:05.157390Z 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-13T14:50:05.157397Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.157400Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)    
2025-02-13T14:50:05.157403Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)    
2025-02-13T14:50:05.157406Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)    
2025-02-13T14:50:05.157408Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)    
2025-02-13T14:50:05.157411Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)    
2025-02-13T14:50:05.157413Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)    
2025-02-13T14:50:05.157418Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)    
2025-02-13T14:50:05.157420Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)    
2025-02-13T14:50:05.157422Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.157424Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)    
2025-02-13T14:50:05.157427Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)    
2025-02-13T14:50:05.157429Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)    
2025-02-13T14:50:05.157431Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)    
2025-02-13T14:50:05.157434Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)    
2025-02-13T14:50:05.157436Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)    
2025-02-13T14:50:05.157439Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)    
2025-02-13T14:50:05.157441Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)    
2025-02-13T14:50:05.157448Z 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-13T14:50:05.157457Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.157459Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.157461Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)    
2025-02-13T14:50:05.157468Z 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-13T14:50:05.157472Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)    
2025-02-13T14:50:05.157474Z 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-13T14:50:05.157477Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes    
2025-02-13T14:50:05.157479Z 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-13T14:50:05.157481Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms    
2025-02-13T14:50:05.157488Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T14:50:05.157498Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T14:50:05.157526Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T14:50:05.157607Z 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-13T14:50:05.157869Z 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-13T14:50:05.157901Z 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-13T14:50:05.158002Z  INFO iox_query::query_log: query when="planned" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00157146 success=false running=true cancelled=false
2025-02-13T14:50:05.158240Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T14:50:05.158322Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T14:50:05.158351Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T14:50:05.158376Z 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-13T14:50:05.158459Z  INFO iox_query::query_log: query when="permit" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00157146 permit_duration_secs=0.000460873 success=false running=true cancelled=false
2025-02-13T14:50:05.158732Z  INFO iox_query::query_log: query when="success" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00157146 permit_duration_secs=0.000460873 execute_duration_secs=0.000267337 end2end_duration_secs=0.00230502 compute_duration_secs=7.1541e-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
2025-02-13T14:50:05.171951Z  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-13T14:50:05.172293Z 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-13T14:50:05.172304Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.172308Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.172352Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172361Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.172366Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.172370Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172377Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172381Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.172382Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.172383Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172385Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172387Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.172388Z 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-13T14:50:05.172391Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172402Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172405Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.172407Z 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-13T14:50:05.172408Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172410Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172413Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.172416Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.172417Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172434Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.176141Z  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-13T14:50:05.176402Z 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-13T14:50:05.176438Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.176487Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176522Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.176555Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.176563Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176568Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176573Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.176576Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.176579Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176582Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176585Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.176587Z 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-13T14:50:05.176592Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176604Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176637Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.176640Z 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-13T14:50:05.176643Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176645Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176648Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.176651Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.176653Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176666Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.176835Z 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-13T14:50:05.179825Z  INFO iox_query::query_log: query when="received" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 success=false running=true cancelled=false
2025-02-13T14:50:05.179857Z  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-13T14:50:05.180027Z 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-13T14:50:05.180049Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-13T14:50:05.180054Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.180085Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180090Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.180093Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.180096Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180099Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180102Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.180103Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.180105Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180106Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180108Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.180109Z 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-13T14:50:05.180113Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180121Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180139Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.180143Z 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-13T14:50:05.180145Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180147Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180150Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.180152Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.180154Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180164Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.180262Z 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-13T14:50:05.180313Z 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-13T14:50:05.180334Z 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-13T14:50:05.180343Z 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-13T14:50:05.180371Z 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-13T14:50:05.180400Z 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-13T14:50:05.180421Z 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-13T14:50:05.180445Z 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-13T14:50:05.180453Z 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-13T14:50:05.180457Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms    
2025-02-13T14:50:05.180466Z 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-13T14:50:05.180480Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)    
2025-02-13T14:50:05.180505Z 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-13T14:50:05.180542Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.180548Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)    
2025-02-13T14:50:05.180552Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)    
2025-02-13T14:50:05.180559Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)    
2025-02-13T14:50:05.180563Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)    
2025-02-13T14:50:05.180567Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)    
2025-02-13T14:50:05.180573Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)    
2025-02-13T14:50:05.180576Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)    
2025-02-13T14:50:05.180579Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)    
2025-02-13T14:50:05.180587Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.180590Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)    
2025-02-13T14:50:05.180594Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)    
2025-02-13T14:50:05.180596Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)    
2025-02-13T14:50:05.180600Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)    
2025-02-13T14:50:05.180602Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)    
2025-02-13T14:50:05.180607Z 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-13T14:50:05.180629Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)    
2025-02-13T14:50:05.180635Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)    
2025-02-13T14:50:05.180646Z 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-13T14:50:05.180660Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.180666Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.180669Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)    
2025-02-13T14:50:05.180687Z 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-13T14:50:05.180718Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)    
2025-02-13T14:50:05.180722Z 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-13T14:50:05.180729Z 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-13T14:50:05.180733Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)    
2025-02-13T14:50:05.180744Z 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-13T14:50:05.180756Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.180759Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)    
2025-02-13T14:50:05.180762Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)    
2025-02-13T14:50:05.180765Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)    
2025-02-13T14:50:05.180768Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)    
2025-02-13T14:50:05.180771Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)    
2025-02-13T14:50:05.180774Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)    
2025-02-13T14:50:05.180777Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)    
2025-02-13T14:50:05.180779Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)    
2025-02-13T14:50:05.180782Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.180785Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)    
2025-02-13T14:50:05.180788Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)    
2025-02-13T14:50:05.180791Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)    
2025-02-13T14:50:05.180793Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)    
2025-02-13T14:50:05.180797Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)    
2025-02-13T14:50:05.180800Z 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-13T14:50:05.180806Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)    
2025-02-13T14:50:05.180808Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)    
2025-02-13T14:50:05.180814Z 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-13T14:50:05.180841Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.180846Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.180849Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)    
2025-02-13T14:50:05.180859Z 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-13T14:50:05.180865Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)    
2025-02-13T14:50:05.180866Z 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-13T14:50:05.180871Z 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-13T14:50:05.180875Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)    
2025-02-13T14:50:05.180883Z 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-13T14:50:05.180907Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.180911Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)    
2025-02-13T14:50:05.180914Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)    
2025-02-13T14:50:05.180917Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)    
2025-02-13T14:50:05.180920Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)    
2025-02-13T14:50:05.180922Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)    
2025-02-13T14:50:05.180925Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)    
2025-02-13T14:50:05.180927Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)    
2025-02-13T14:50:05.180929Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)    
2025-02-13T14:50:05.180932Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.180935Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)    
2025-02-13T14:50:05.180937Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)    
2025-02-13T14:50:05.180940Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)    
2025-02-13T14:50:05.180942Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)    
2025-02-13T14:50:05.180944Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)    
2025-02-13T14:50:05.180947Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)    
2025-02-13T14:50:05.180949Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)    
2025-02-13T14:50:05.180952Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)    
2025-02-13T14:50:05.180960Z 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-13T14:50:05.180988Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.180994Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.180997Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)    
2025-02-13T14:50:05.181007Z 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-13T14:50:05.181014Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)    
2025-02-13T14:50:05.181015Z 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-13T14:50:05.181020Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes    
2025-02-13T14:50:05.181023Z 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-13T14:50:05.181025Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms    
2025-02-13T14:50:05.181032Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T14:50:05.181054Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T14:50:05.181084Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T14:50:05.181165Z 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-13T14:50:05.181424Z 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-13T14:50:05.181455Z 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-13T14:50:05.181520Z  INFO iox_query::query_log: query when="planned" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001693857 success=false running=true cancelled=false
2025-02-13T14:50:05.181647Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T14:50:05.181727Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T14:50:05.181757Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T14:50:05.181780Z 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-13T14:50:05.181864Z  INFO iox_query::query_log: query when="permit" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001693857 permit_duration_secs=0.000346584 success=false running=true cancelled=false
2025-02-13T14:50:05.182105Z  INFO iox_query::query_log: query when="success" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001693857 permit_duration_secs=0.000346584 execute_duration_secs=0.000237361 end2end_duration_secs=0.002281144 compute_duration_secs=7.8618e-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 10:50:04 下午 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 10:50:04 下午 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 10:50:04 下午 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=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]
        

----------------------------------
time    location        value   
----------------------------------
2025-02-13 06:49:52.112697111   London  30.01   

----------------------------------
2025-02-13T14:50:03.396689Z  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=f661ced9-c482-4ea4-b7d3-c1d87c61d430 num_cpus=16
2025-02-13T14:50:03.396755Z DEBUG influxdb3::commands::serve: build configuration build_malloc_conf=
2025-02-13T14:50:03.396973Z  INFO influxdb3_clap_blocks::object_store: Object Store object_store_type="Memory"
2025-02-13T14:50:03.397038Z  INFO influxdb3::commands::serve: Creating shared query executor num_threads=16
2025-02-13T14:50:03.397939Z DEBUG influxdb3_cache::parquet_cache: >>> test: background cache pruning running
2025-02-13T14:50:03.439976Z DEBUG datafusion_execution::memory_pool::pool: Created new GreedyMemoryPool(pool_size=8589934592)    
2025-02-13T14:50:03.440668Z  INFO influxdb3_write::persister: Catalog not found, creating new instance id instance_id="082fb6d8-903f-40f4-a0cc-a568029ee7ae"
2025-02-13T14:50:03.440784Z  INFO influxdb3::commands::serve: catalog initialized instance_id="082fb6d8-903f-40f4-a0cc-a568029ee7ae"
2025-02-13T14:50:03.440868Z DEBUG influxdb3_wal::object_store: >>> replaying
2025-02-13T14:50:03.440958Z  INFO influxdb3::commands::serve: setting up background mem check for query buffer
2025-02-13T14:50:03.440967Z DEBUG influxdb3::commands::serve: setting up background buffer checker mem_threshold_bytes=11441879859
2025-02-13T14:50:03.440973Z  INFO influxdb3::commands::serve: setting up telemetry store
2025-02-13T14:50:03.440977Z DEBUG influxdb3::commands::serve: Initializing TelemetryStore with upload enabled for https://telemetry.v3.influxdata.com.
2025-02-13T14:50:03.440980Z DEBUG influxdb3_telemetry::store: Initializing telemetry store instance_id="082fb6d8-903f-40f4-a0cc-a568029ee7ae" os="linux" influx_version="influxdb3-0.1.0" storage_type="memory" cores=16
2025-02-13T14:50:03.442293Z DEBUG influxdb3_write::write_buffer: checking buffer size and snapshotting current_buffer_size_bytes=0 memory_threshold_bytes=11441879859
2025-02-13T14:50:03.449274Z DEBUG influxdb3_telemetry::store: Snapshot write size in bytes min=0 max=0 avg=0
2025-02-13T14:50:03.449320Z 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: "082fb6d8-903f-40f4-a0cc-a568029ee7ae", 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-13T14:50:03.453025Z DEBUG reqwest::connect: starting new connection: https://telemetry.v3.influxdata.com/    
2025-02-13T14:50:03.459556Z DEBUG hyper::client::connect::dns: resolving host="telemetry.v3.influxdata.com"
2025-02-13T14:50:03.463440Z DEBUG hyper::client::connect::http: connecting to 172.29.1.4:443
2025-02-13T14:50:03.464026Z DEBUG hyper::client::connect::http: connected to 172.29.1.4:443
2025-02-13T14:50:03.464164Z DEBUG rustls::client::hs: No cached session for DnsName("telemetry.v3.influxdata.com")    
2025-02-13T14:50:03.464252Z DEBUG rustls::client::hs: Not resuming any session    
2025-02-13T14:50:03.480334Z DEBUG influxdb3_telemetry::sampler: trying to sample data for cpu/memory cpu_used=0.0 mem_used=271400960
2025-02-13T14:50:03.480376Z 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-13T14:50:03.480383Z 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-13T14:50:03.636567Z  INFO influxdb3_server: startup time: 241ms address=0.0.0.0:8181
2025-02-13T14:50:03.837375Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_128_GCM_SHA256    
2025-02-13T14:50:03.837454Z DEBUG rustls::client::tls13: Not resuming    
2025-02-13T14:50:03.837643Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [ServerNameAck, Protocols([ProtocolName(6832)])]    
2025-02-13T14:50:03.837682Z DEBUG rustls::client::hs: ALPN protocol is Some(b"h2")    
2025-02-13T14:50:03.838169Z DEBUG hyper::client::pool: pooling idle connection for ("https", telemetry.v3.influxdata.com)
2025-02-13T14:50:04.165262Z 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:32773", "http2-settings": "AAEAAEAAAAIAAAAAAAMAAAAAAAQBAAAAAAUAAEAAAAYABgAA", "upgrade": "h2c", "content-type": "text/plain; charset=utf-8", "user-agent": "influxdb3-java/1.0.0"}, body: Body(Streaming) }
2025-02-13T14:50:04.165409Z  INFO influxdb3_server::http: write_lp to mydb
2025-02-13T14:50:04.167054Z DEBUG influxdb3_write::write_buffer: write_lp to mydb in writebuffer
2025-02-13T14:50:04.167106Z  INFO influxdb3_catalog::catalog: return new db mydb
2025-02-13T14:50:04.167239Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739458204167049431, 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-13T14:50:04.205183Z DEBUG influxdb3_telemetry::sender: Successfully sent telemetry data to server to endpoint="https://telemetry.v3.influxdata.com/telem"
2025-02-13T14:50:04.443062Z DEBUG influxdb3_wal::snapshot_tracker: >>> wal periods and snapshots wal_periods=[WalPeriod { wal_file_number: WalFileSequenceNumber(1), min_time: Timestamp(1739458192112697111), max_time: Timestamp(1739458204167049431) }] wal_periods_len=1 num_snapshots_after=900
2025-02-13T14:50:04.443140Z  INFO influxdb3_wal::object_store: flushing WAL buffer to object store host="local01" n_ops=2 min_timestamp_ns=1739458192112697111 max_timestamp_ns=1739458204167049431 wal_file_number=1
2025-02-13T14:50:04.443214Z DEBUG influxdb3_wal::object_store: notify sent to buffer for wal file 1
2025-02-13T14:50:04.443222Z DEBUG influxdb3_catalog::catalog: Updating / adding to catalog name="mydb" deleted=false full_batch=CatalogBatch { database_id: DbId(0), database_name: "mydb", time_ns: 1739458204167049431, 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-13T14:50:04.443333Z DEBUG influxdb3_server::http: Successfully processed request response=Response { status: 204, version: HTTP/1.1, headers: {}, body: Body(Empty) }
2025-02-13T14:50:05.045541Z  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-13T14:50:05.046083Z 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-13T14:50:05.046119Z DEBUG flightsql::planner: Creating prepared statement query=EXPLAIN ANALYZE select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.046127Z 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-13T14:50:05.046306Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046343Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.046363Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.046378Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046391Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046415Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.046420Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.046422Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046425Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046427Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.046429Z 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-13T14:50:05.046446Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046474Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046482Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.046484Z 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-13T14:50:05.046487Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046490Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.046493Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.046497Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.046499Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.046571Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.083490Z  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-13T14:50:05.084023Z 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-13T14:50:05.084062Z 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-13T14:50:05.084132Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084180Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.084220Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.084232Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084244Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084254Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.084259Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.084264Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084268Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084272Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.084274Z 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-13T14:50:05.084279Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084293Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084316Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.084320Z 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-13T14:50:05.084324Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084327Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.084331Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.084334Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.084336Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.084359Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.084597Z 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-13T14:50:05.095966Z  INFO iox_query::query_log: query when="received" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 success=false running=true cancelled=false
2025-02-13T14:50:05.096040Z  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-13T14:50:05.096324Z 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-13T14:50:05.096356Z 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-13T14:50:05.096363Z 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-13T14:50:05.096421Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096445Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.096452Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.096457Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096461Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096465Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.096467Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.096468Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096469Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096471Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.096472Z 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-13T14:50:05.096476Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096489Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096507Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.096511Z 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-13T14:50:05.096513Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096516Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.096518Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.096521Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.096522Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.096538Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.096682Z 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-13T14:50:05.096813Z 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-13T14:50:05.096858Z 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-13T14:50:05.096894Z 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-13T14:50:05.096946Z 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-13T14:50:05.096963Z 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-13T14:50:05.097003Z 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-13T14:50:05.097040Z 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-13T14:50:05.097048Z 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-13T14:50:05.097051Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms    
2025-02-13T14:50:05.097066Z 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-13T14:50:05.097110Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)    
2025-02-13T14:50:05.097161Z 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-13T14:50:05.097196Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.097207Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)    
2025-02-13T14:50:05.097213Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)    
2025-02-13T14:50:05.097220Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)    
2025-02-13T14:50:05.097224Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)    
2025-02-13T14:50:05.097228Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)    
2025-02-13T14:50:05.097233Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)    
2025-02-13T14:50:05.097235Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)    
2025-02-13T14:50:05.097239Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)    
2025-02-13T14:50:05.097254Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.097272Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)    
2025-02-13T14:50:05.097277Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)    
2025-02-13T14:50:05.097281Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)    
2025-02-13T14:50:05.097285Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)    
2025-02-13T14:50:05.097288Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)    
2025-02-13T14:50:05.097292Z 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-13T14:50:05.097314Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)    
2025-02-13T14:50:05.097320Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)    
2025-02-13T14:50:05.097332Z 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-13T14:50:05.097346Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.097351Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.097354Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)    
2025-02-13T14:50:05.097379Z 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-13T14:50:05.097416Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)    
2025-02-13T14:50:05.097419Z 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-13T14:50:05.097427Z 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-13T14:50:05.097431Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)    
2025-02-13T14:50:05.097444Z 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-13T14:50:05.097456Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.097476Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)    
2025-02-13T14:50:05.097482Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)    
2025-02-13T14:50:05.097486Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)    
2025-02-13T14:50:05.097489Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)    
2025-02-13T14:50:05.097492Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)    
2025-02-13T14:50:05.097496Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)    
2025-02-13T14:50:05.097499Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)    
2025-02-13T14:50:05.097501Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)    
2025-02-13T14:50:05.097504Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.097507Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)    
2025-02-13T14:50:05.097510Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)    
2025-02-13T14:50:05.097513Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)    
2025-02-13T14:50:05.097516Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)    
2025-02-13T14:50:05.097519Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)    
2025-02-13T14:50:05.097522Z 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-13T14:50:05.097528Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)    
2025-02-13T14:50:05.097530Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)    
2025-02-13T14:50:05.097539Z 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-13T14:50:05.097550Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.097554Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.097556Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)    
2025-02-13T14:50:05.097566Z 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-13T14:50:05.097588Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)    
2025-02-13T14:50:05.097592Z 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-13T14:50:05.097598Z 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-13T14:50:05.097602Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)    
2025-02-13T14:50:05.097611Z 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-13T14:50:05.097622Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.097624Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)    
2025-02-13T14:50:05.097627Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)    
2025-02-13T14:50:05.097630Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)    
2025-02-13T14:50:05.097633Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)    
2025-02-13T14:50:05.097635Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)    
2025-02-13T14:50:05.097638Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)    
2025-02-13T14:50:05.097641Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)    
2025-02-13T14:50:05.097643Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)    
2025-02-13T14:50:05.097646Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.097650Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)    
2025-02-13T14:50:05.097653Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)    
2025-02-13T14:50:05.097656Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)    
2025-02-13T14:50:05.097658Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)    
2025-02-13T14:50:05.097661Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)    
2025-02-13T14:50:05.097666Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)    
2025-02-13T14:50:05.097669Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)    
2025-02-13T14:50:05.097671Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)    
2025-02-13T14:50:05.097678Z 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-13T14:50:05.097689Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.097692Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.097695Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)    
2025-02-13T14:50:05.097704Z 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-13T14:50:05.097725Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)    
2025-02-13T14:50:05.097730Z 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-13T14:50:05.097736Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes    
2025-02-13T14:50:05.097738Z 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-13T14:50:05.097740Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms    
2025-02-13T14:50:05.097762Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T14:50:05.097777Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T14:50:05.097851Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T14:50:05.098028Z 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-13T14:50:05.098387Z 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-13T14:50:05.098424Z 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-13T14:50:05.098550Z  INFO iox_query::query_log: query when="planned" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002583118 success=false running=true cancelled=false
2025-02-13T14:50:05.098825Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T14:50:05.098868Z 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-13T14:50:05.098956Z  INFO iox_query::query_log: query when="permit" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002583118 permit_duration_secs=0.000410185 success=false running=true cancelled=false
2025-02-13T14:50:05.099082Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T14:50:05.099136Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T14:50:05.099496Z  INFO iox_query::query_log: query when="success" id=f8aee3b4-e5b7-4b45-a22f-cea0dfcb8588 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-13T14:50:05.095962154+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.002583118 permit_duration_secs=0.000410185 execute_duration_secs=0.000534408 end2end_duration_secs=0.003533051 compute_duration_secs=0.000212813 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-13T14:50:05.142753Z  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-13T14:50:05.145225Z 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-13T14:50:05.145290Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.145314Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.145773Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.145840Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.145872Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.145917Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.145945Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.145955Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.145957Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.145959Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.145963Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.145966Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.145968Z 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-13T14:50:05.146008Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.146088Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.146126Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.146132Z 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-13T14:50:05.146137Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.146143Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.146158Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.146186Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.146190Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.146357Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.151691Z  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-13T14:50:05.152238Z 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-13T14:50:05.152265Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.152342Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152369Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.152378Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.152385Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152388Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152393Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.152395Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.152396Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152397Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152399Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.152401Z 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-13T14:50:05.152405Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152420Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152440Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.152444Z 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-13T14:50:05.152447Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152450Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.152453Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.152457Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.152458Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.152479Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.152727Z 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-13T14:50:05.156427Z  INFO iox_query::query_log: query when="received" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 success=false running=true cancelled=false
2025-02-13T14:50:05.156461Z  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-13T14:50:05.156638Z 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-13T14:50:05.156659Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-13T14:50:05.156665Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.156701Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156707Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.156710Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.156713Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156716Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156719Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.156721Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.156722Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156723Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156725Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.156726Z 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-13T14:50:05.156729Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156737Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156739Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.156741Z 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-13T14:50:05.156742Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156744Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.156746Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.156749Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.156750Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.156761Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.156857Z 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-13T14:50:05.156908Z 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-13T14:50:05.156929Z 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-13T14:50:05.156940Z 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-13T14:50:05.156965Z 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-13T14:50:05.156978Z 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-13T14:50:05.156993Z 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-13T14:50:05.157003Z 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-13T14:50:05.157008Z 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-13T14:50:05.157010Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms    
2025-02-13T14:50:05.157021Z 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-13T14:50:05.157051Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)    
2025-02-13T14:50:05.157084Z 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-13T14:50:05.157102Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.157106Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)    
2025-02-13T14:50:05.157109Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)    
2025-02-13T14:50:05.157116Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)    
2025-02-13T14:50:05.157120Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)    
2025-02-13T14:50:05.157123Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)    
2025-02-13T14:50:05.157128Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)    
2025-02-13T14:50:05.157130Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)    
2025-02-13T14:50:05.157134Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)    
2025-02-13T14:50:05.157142Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.157149Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)    
2025-02-13T14:50:05.157152Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)    
2025-02-13T14:50:05.157155Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)    
2025-02-13T14:50:05.157158Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)    
2025-02-13T14:50:05.157161Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)    
2025-02-13T14:50:05.157175Z 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-13T14:50:05.157199Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)    
2025-02-13T14:50:05.157205Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)    
2025-02-13T14:50:05.157217Z 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-13T14:50:05.157230Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.157234Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.157237Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)    
2025-02-13T14:50:05.157258Z 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-13T14:50:05.157271Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)    
2025-02-13T14:50:05.157273Z 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-13T14:50:05.157278Z 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-13T14:50:05.157282Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)    
2025-02-13T14:50:05.157290Z 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-13T14:50:05.157300Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.157303Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)    
2025-02-13T14:50:05.157305Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)    
2025-02-13T14:50:05.157309Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)    
2025-02-13T14:50:05.157312Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)    
2025-02-13T14:50:05.157314Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)    
2025-02-13T14:50:05.157317Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)    
2025-02-13T14:50:05.157320Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)    
2025-02-13T14:50:05.157322Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)    
2025-02-13T14:50:05.157325Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.157327Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)    
2025-02-13T14:50:05.157330Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)    
2025-02-13T14:50:05.157333Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)    
2025-02-13T14:50:05.157335Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)    
2025-02-13T14:50:05.157338Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)    
2025-02-13T14:50:05.157341Z 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-13T14:50:05.157344Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)    
2025-02-13T14:50:05.157347Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)    
2025-02-13T14:50:05.157353Z 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-13T14:50:05.157360Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.157363Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.157365Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)    
2025-02-13T14:50:05.157371Z 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-13T14:50:05.157375Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)    
2025-02-13T14:50:05.157377Z 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-13T14:50:05.157381Z 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-13T14:50:05.157384Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)    
2025-02-13T14:50:05.157390Z 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-13T14:50:05.157397Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.157400Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)    
2025-02-13T14:50:05.157403Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)    
2025-02-13T14:50:05.157406Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)    
2025-02-13T14:50:05.157408Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)    
2025-02-13T14:50:05.157411Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)    
2025-02-13T14:50:05.157413Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)    
2025-02-13T14:50:05.157418Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)    
2025-02-13T14:50:05.157420Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)    
2025-02-13T14:50:05.157422Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.157424Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)    
2025-02-13T14:50:05.157427Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)    
2025-02-13T14:50:05.157429Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)    
2025-02-13T14:50:05.157431Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)    
2025-02-13T14:50:05.157434Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)    
2025-02-13T14:50:05.157436Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)    
2025-02-13T14:50:05.157439Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)    
2025-02-13T14:50:05.157441Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)    
2025-02-13T14:50:05.157448Z 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-13T14:50:05.157457Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.157459Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.157461Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)    
2025-02-13T14:50:05.157468Z 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-13T14:50:05.157472Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)    
2025-02-13T14:50:05.157474Z 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-13T14:50:05.157477Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes    
2025-02-13T14:50:05.157479Z 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-13T14:50:05.157481Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms    
2025-02-13T14:50:05.157488Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T14:50:05.157498Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T14:50:05.157526Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T14:50:05.157607Z 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-13T14:50:05.157869Z 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-13T14:50:05.157901Z 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-13T14:50:05.158002Z  INFO iox_query::query_log: query when="planned" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00157146 success=false running=true cancelled=false
2025-02-13T14:50:05.158240Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T14:50:05.158322Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T14:50:05.158351Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T14:50:05.158376Z 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-13T14:50:05.158459Z  INFO iox_query::query_log: query when="permit" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00157146 permit_duration_secs=0.000460873 success=false running=true cancelled=false
2025-02-13T14:50:05.158732Z  INFO iox_query::query_log: query when="success" id=92aec492-8ba4-46dc-839f-4141c0a2f48b 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-13T14:50:05.156426283+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.00157146 permit_duration_secs=0.000460873 execute_duration_secs=0.000267337 end2end_duration_secs=0.00230502 compute_duration_secs=7.1541e-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
2025-02-13T14:50:05.171951Z  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-13T14:50:05.172293Z 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-13T14:50:05.172304Z DEBUG flightsql::planner: Creating prepared statement query=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.172308Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.172352Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172361Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.172366Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.172370Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172377Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172381Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.172382Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.172383Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172385Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172387Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.172388Z 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-13T14:50:05.172391Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172402Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172405Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.172407Z 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-13T14:50:05.172408Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172410Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.172413Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.172416Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.172417Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.172434Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.176141Z  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-13T14:50:05.176402Z 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-13T14:50:05.176438Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.176487Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176522Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.176555Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.176563Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176568Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176573Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.176576Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.176579Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176582Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176585Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.176587Z 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-13T14:50:05.176592Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176604Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176637Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.176640Z 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-13T14:50:05.176643Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176645Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.176648Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.176651Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.176653Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.176666Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.176835Z 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-13T14:50:05.179825Z  INFO iox_query::query_log: query when="received" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 success=false running=true cancelled=false
2025-02-13T14:50:05.179857Z  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-13T14:50:05.180027Z 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-13T14:50:05.180049Z DEBUG flightsql::planner: Planning FlightSQL prepared query handle=Prepared(select time,location,value from home order by time desc limit 10)
2025-02-13T14:50:05.180054Z DEBUG iox_query::exec::context: planning SQL query text=select time,location,value from home order by time desc limit 10
2025-02-13T14:50:05.180085Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180090Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.180093Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.180096Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180099Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180102Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "location", quote_style: None })    
2025-02-13T14:50:05.180103Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: Comma, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.180105Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180106Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180108Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "value", quote_style: None })    
2025-02-13T14:50:05.180109Z 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-13T14:50:05.180113Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180121Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180139Z DEBUG sqlparser::parser: prefix: Identifier(Ident { value: "time", quote_style: None })    
2025-02-13T14:50:05.180143Z 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-13T14:50:05.180145Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180147Z DEBUG sqlparser::parser: parsing expr    
2025-02-13T14:50:05.180150Z DEBUG sqlparser::parser: prefix: Value(Number("10", false))    
2025-02-13T14:50:05.180152Z DEBUG sqlparser::dialect: get_next_precedence_full() TokenWithLocation { token: EOF, location: Location { line: 0, column: 0 } }    
2025-02-13T14:50:05.180154Z DEBUG sqlparser::parser: next precedence: 0    
2025-02-13T14:50:05.180164Z DEBUG influxdb3_server::query_executor: Database as CatalogProvider::schema schema_name=iox
2025-02-13T14:50:05.180262Z 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-13T14:50:05.180313Z 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-13T14:50:05.180334Z 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-13T14:50:05.180343Z 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-13T14:50:05.180371Z 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-13T14:50:05.180400Z 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-13T14:50:05.180421Z 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-13T14:50:05.180445Z 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-13T14:50:05.180453Z 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-13T14:50:05.180457Z DEBUG datafusion_optimizer::analyzer: Analyzer took 0 ms    
2025-02-13T14:50:05.180466Z 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-13T14:50:05.180480Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 0)    
2025-02-13T14:50:05.180505Z 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-13T14:50:05.180542Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.180548Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 0)    
2025-02-13T14:50:05.180552Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 0)    
2025-02-13T14:50:05.180559Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 0)    
2025-02-13T14:50:05.180563Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 0)    
2025-02-13T14:50:05.180567Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 0)    
2025-02-13T14:50:05.180573Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 0)    
2025-02-13T14:50:05.180576Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 0)    
2025-02-13T14:50:05.180579Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 0)    
2025-02-13T14:50:05.180587Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.180590Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 0)    
2025-02-13T14:50:05.180594Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 0)    
2025-02-13T14:50:05.180596Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 0)    
2025-02-13T14:50:05.180600Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 0)    
2025-02-13T14:50:05.180602Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 0)    
2025-02-13T14:50:05.180607Z 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-13T14:50:05.180629Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 0)    
2025-02-13T14:50:05.180635Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 0)    
2025-02-13T14:50:05.180646Z 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-13T14:50:05.180660Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 0)    
2025-02-13T14:50:05.180666Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 0)    
2025-02-13T14:50:05.180669Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 0)    
2025-02-13T14:50:05.180687Z 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-13T14:50:05.180718Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 0)    
2025-02-13T14:50:05.180722Z 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-13T14:50:05.180729Z 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-13T14:50:05.180733Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 1)    
2025-02-13T14:50:05.180744Z 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-13T14:50:05.180756Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.180759Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 1)    
2025-02-13T14:50:05.180762Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 1)    
2025-02-13T14:50:05.180765Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 1)    
2025-02-13T14:50:05.180768Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 1)    
2025-02-13T14:50:05.180771Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 1)    
2025-02-13T14:50:05.180774Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 1)    
2025-02-13T14:50:05.180777Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 1)    
2025-02-13T14:50:05.180779Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 1)    
2025-02-13T14:50:05.180782Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.180785Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 1)    
2025-02-13T14:50:05.180788Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 1)    
2025-02-13T14:50:05.180791Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 1)    
2025-02-13T14:50:05.180793Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 1)    
2025-02-13T14:50:05.180797Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 1)    
2025-02-13T14:50:05.180800Z 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-13T14:50:05.180806Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 1)    
2025-02-13T14:50:05.180808Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 1)    
2025-02-13T14:50:05.180814Z 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-13T14:50:05.180841Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 1)    
2025-02-13T14:50:05.180846Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 1)    
2025-02-13T14:50:05.180849Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 1)    
2025-02-13T14:50:05.180859Z 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-13T14:50:05.180865Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 1)    
2025-02-13T14:50:05.180866Z 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-13T14:50:05.180871Z 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-13T14:50:05.180875Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_nested_union' (pass 2)    
2025-02-13T14:50:05.180883Z 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-13T14:50:05.180907Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.180911Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'replace_distinct_aggregate' (pass 2)    
2025-02-13T14:50:05.180914Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_join' (pass 2)    
2025-02-13T14:50:05.180917Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'decorrelate_predicate_subquery' (pass 2)    
2025-02-13T14:50:05.180920Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'scalar_subquery_to_join' (pass 2)    
2025-02-13T14:50:05.180922Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'extract_equijoin_predicate' (pass 2)    
2025-02-13T14:50:05.180925Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_duplicated_expr' (pass 2)    
2025-02-13T14:50:05.180927Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_filter' (pass 2)    
2025-02-13T14:50:05.180929Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_cross_join' (pass 2)    
2025-02-13T14:50:05.180932Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.180935Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_limit' (pass 2)    
2025-02-13T14:50:05.180937Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'propagate_empty_relation' (pass 2)    
2025-02-13T14:50:05.180940Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_one_union' (pass 2)    
2025-02-13T14:50:05.180942Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'filter_null_join_keys' (pass 2)    
2025-02-13T14:50:05.180944Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_outer_join' (pass 2)    
2025-02-13T14:50:05.180947Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_limit' (pass 2)    
2025-02-13T14:50:05.180949Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'push_down_filter' (pass 2)    
2025-02-13T14:50:05.180952Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'single_distinct_aggregation_to_group_by' (pass 2)    
2025-02-13T14:50:05.180960Z 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-13T14:50:05.180988Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'unwrap_cast_in_comparison' (pass 2)    
2025-02-13T14:50:05.180994Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'common_sub_expression_eliminate' (pass 2)    
2025-02-13T14:50:05.180997Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'eliminate_group_by_constant' (pass 2)    
2025-02-13T14:50:05.181007Z 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-13T14:50:05.181014Z DEBUG datafusion_optimizer::optimizer: Plan unchanged by optimizer rule 'influx_regex_to_datafusion_regex' (pass 2)    
2025-02-13T14:50:05.181015Z 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-13T14:50:05.181020Z DEBUG datafusion_optimizer::optimizer: optimizer pass 2 did not make changes    
2025-02-13T14:50:05.181023Z 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-13T14:50:05.181025Z DEBUG datafusion_optimizer::optimizer: Optimizer took 0 ms    
2025-02-13T14:50:05.181032Z DEBUG influxdb3_server::query_executor: QueryTable as TableProvider::scan projection=Some([0, 1, 2]) filters=[] limit=None
2025-02-13T14:50:05.181054Z DEBUG influxdb3_write: >>> creating chunk filter input=[]
2025-02-13T14:50:05.181084Z DEBUG influxdb3_write::write_buffer: >>> num parquet file cache requests created len=0
2025-02-13T14:50:05.181165Z 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-13T14:50:05.181424Z 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-13T14:50:05.181455Z 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-13T14:50:05.181520Z  INFO iox_query::query_log: query when="planned" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001693857 success=false running=true cancelled=false
2025-02-13T14:50:05.181647Z DEBUG iox_query::provider::deduplicate: End building stream for DeduplicationExec::execute partition=0
2025-02-13T14:50:05.181727Z DEBUG iox_query::provider::deduplicate: before sending the left over batch
2025-02-13T14:50:05.181757Z DEBUG iox_query::provider::deduplicate: done sending the left over batch
2025-02-13T14:50:05.181780Z 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-13T14:50:05.181864Z  INFO iox_query::query_log: query when="permit" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001693857 permit_duration_secs=0.000346584 success=false running=true cancelled=false
2025-02-13T14:50:05.182105Z  INFO iox_query::query_log: query when="success" id=c9242f3b-7237-45c5-94de-f52755a2c531 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-13T14:50:05.179823174+00:00 partitions=0 parquet_files=0 deduplicated_partitions=0 deduplicated_parquet_files=0 plan_duration_secs=0.001693857 permit_duration_secs=0.000346584 execute_duration_secs=0.000237361 end2end_duration_secs=0.002281144 compute_duration_secs=7.8618e-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.679 s <<< FAILURE! -- in io.github.linghengqian.TimeDifferenceTest
[ERROR] io.github.linghengqian.TimeDifferenceTest.test -- Time elapsed: 3.603 s <<< FAILURE!
java.lang.AssertionError: 

Expected: is <1739458192112L>
     but: was <1739400592112L>
        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: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:66 
Expected: is <1739458192112L>
     but: was <1739400592112L>
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.878 s (Wall Clock)
[INFO] Finished at: 2025-02-13T22:50:06+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

@hiltontj
Copy link
Contributor

I will say that the default timezone for the influxdb 3 core docker container is UTC, while my WSL instance is set to Asia/Shanghai in East 8, which is a 16 hour difference which is a bit weird

I suspect the issue is related to time-zone conversion.

I wonder if you were to try some other methods to convert the time column value in your assertions, would you get the correct result.

You may know the options better than I, but instead of using getTime in this line:

assertThat(resultSet.getTimestamp("time").getTime(), is(magicTime.toEpochMilli()));

Perhaps try toInstant or some other method on Timestamp to get the value for assertion?

@linghengqian
Copy link
Author

  • I simplified the logic of the unit test a bit to simply expose the assertions. Located at linghengqian/influxdb-3-core-jdbc-test@34be9a8 .
  • The time obtained from the Apache Arrow Flight JDBC Driver is 16 hours different from the time originally inserted.
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

@linghengqian
Copy link
Author

  • Or I guess you wanted something like this logic, but that's not possible.
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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants