Skip to content

Unexpected SQL crash when using timestamp function on empty table #5987

@Jyotigarg1407

Description

@Jyotigarg1407

To reproduce

  1. Go to QuestDB Web Console or connect via REST API
  2. Create an empty table:
    CREATE TABLE test_empty (ts TIMESTAMP);
  3. Run the following SQL query:
    SELECT timestamp(ts) FROM test_empty;
  4. Observe the crash or error message

QuestDB version:

7.3.5

OS, in case of Docker specify Docker and the Host OS:

Docker on Ubuntu 22.04

File System, in case of Docker specify Host File System:

ext4

Full Name:

Jyoti Agrawal

Affiliation:

Oracle

Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?

  • Yes, I have

Additional context

Crash only occurs on empty tables when calling timestamp()

This may be related to internal null handling

Example log output:
[questdb] [ERROR] java.lang.NullPointerException at ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions