Skip to content

PostgresError: Failed to plan SQL: No field named \"span_attributes.gen_ai.usage.cache_read.input_tokens\". #296

Description

@heiwen

The issue is that GreptimeDB creates columns dynamically when data is first inserted. If no span with gen_ai.usage.cache_read.input_tokens has been received yet, that column doesn't exist in the schema and the query fails at plan time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions