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

PromQL __field__ column has Upper #4786

Closed
Fordisk123 opened this issue Sep 29, 2024 · 5 comments · Fixed by #4822
Closed

PromQL __field__ column has Upper #4786

Fordisk123 opened this issue Sep 29, 2024 · 5 comments · Fixed by #4822
Labels
C-bug Category Bugs

Comments

@Fordisk123
Copy link

What type of bug is this?

Incorrect result

What subsystems are affected?

Query Engine

Minimal reproduce step

image I get an error when I query this field

What did you expect to see?

image this query will

What did you see instead?

Is it a bug or does it need additional escaping?

What operating system did you use?

Centos7

What version of GreptimeDB did you use?

0.9.3

Relevant log output and stack trace

Internal error during building DataFusion plan: No field named ess_meter_negativeacticet. Valid fields are "snStorageEssMeterYcTopic"."ess_meter_negativeacticeT", "snStorageEssMeterYcTopic"."ess_meter_positiveacticeT", "snStorageEssMeterYcTopic".ess_meter_cos, "snStorageEssMeterYcTopic".ess_meter_f, "snStorageEssMeterYcTopic".ess_meter_ia, "snStorageEssMeterYcTopic".ess_meter_ib, "snStorageEssMeterYcTopic".ess_meter_ic, "snStorageEssMeterYcTopic".ess_meter_negativeacticef, "snStorageEssMeterYcTopic".ess_meter_negativeacticeg, "snStorageEssMeterYcTopic".ess_meter_negativeacticej, "snStorageEssMeterYcTopic".ess_meter_negativeacticep, "snStorageEssMeterYcTopic".ess_meter_p, "snStorageEssMeterYcTopic".ess_meter_positiveacticef, "snStorageEssMeterYcTopic".ess_meter_positiveacticeg, "snStorageEssMeterYcTopic".ess_meter_positiveacticej, "snStorageEssMeterYcTopic".ess_meter_positiveacticep, "snStorageEssMeterYcTopic".ess_meter_q, "snStorageEssMeterYcTopic".ess_meter_ua, "snStorageEssMeterYcTopic".ess_meter_ub, "snStorageEssMeterYcTopic".ess_meter_uc, "snStorageEssMeterYcTopic"."jiancedianID", "snStorageEssMeterYcTopic".ts.
@Fordisk123 Fordisk123 added the C-bug Category Bugs label Sep 29, 2024
@evenyag
Copy link
Contributor

evenyag commented Sep 30, 2024

Looks like a bug. Could you also provide the SQL that creates this table?

@killme2008
Copy link
Contributor

Could you try use the single quote? 'ess_meger_xxx'.

@Fordisk123
Copy link
Author

Looks like a bug. Could you also provide the SQL that creates this table?

CREATE TABLE IF NOT EXISTS "snStorageEssMeterYcTopic" (
"jiancedianID" STRING NULL,
"ess_meter_negativeacticeT" DOUBLE NULL,
"ess_meter_positiveacticeT" DOUBLE NULL,
"ts" TIMESTAMP(9) NOT NULL,
"ess_meter_cos" DOUBLE NULL,
"ess_meter_f" DOUBLE NULL,
"ess_meter_ia" DOUBLE NULL,
"ess_meter_ib" DOUBLE NULL,
"ess_meter_ic" DOUBLE NULL,
"ess_meter_negativeacticef" DOUBLE NULL,
"ess_meter_negativeacticeg" DOUBLE NULL,
"ess_meter_negativeacticej" DOUBLE NULL,
"ess_meter_negativeacticep" DOUBLE NULL,
"ess_meter_p" DOUBLE NULL,
"ess_meter_positiveacticef" DOUBLE NULL,
"ess_meter_positiveacticeg" DOUBLE NULL,
"ess_meter_positiveacticej" DOUBLE NULL,
"ess_meter_positiveacticep" DOUBLE NULL,
"ess_meter_q" DOUBLE NULL,
"ess_meter_ua" DOUBLE NULL,
"ess_meter_ub" DOUBLE NULL,
"ess_meter_uc" DOUBLE NULL,
TIME INDEX ("ts"),
PRIMARY KEY ("jiancedianID")
)

ENGINE=mito
WITH(
merge_mode = 'last_non_null'
)

@Fordisk123
Copy link
Author

Could you try use the single quote? 'ess_meger_xxx'.

image

@Fordisk123
Copy link
Author

Could you try use the single quote? 'ess_meger_xxx'.

image

{
"code": 3000,
"error": "Internal error during building DataFusion plan: No field named filed. Valid fields are "snStorageEssMeterYcTopic"."ess_meter_negativeacticeT", "snStorageEssMeterYcTopic"."ess_meter_positiveacticeT", "snStorageEssMeterYcTopic".ess_meter_cos, "snStorageEssMeterYcTopic".ess_meter_f, "snStorageEssMeterYcTopic".ess_meter_ia, "snStorageEssMeterYcTopic".ess_meter_ib, "snStorageEssMeterYcTopic".ess_meter_ic, "snStorageEssMeterYcTopic".ess_meter_negativeacticef, "snStorageEssMeterYcTopic".ess_meter_negativeacticeg, "snStorageEssMeterYcTopic".ess_meter_negativeacticej, "snStorageEssMeterYcTopic".ess_meter_negativeacticep, "snStorageEssMeterYcTopic".ess_meter_p, "snStorageEssMeterYcTopic".ess_meter_positiveacticef, "snStorageEssMeterYcTopic".ess_meter_positiveacticeg, "snStorageEssMeterYcTopic".ess_meter_positiveacticej, "snStorageEssMeterYcTopic".ess_meter_positiveacticep, "snStorageEssMeterYcTopic".ess_meter_q, "snStorageEssMeterYcTopic".ess_meter_ua, "snStorageEssMeterYcTopic".ess_meter_ub, "snStorageEssMeterYcTopic".ess_meter_uc, "snStorageEssMeterYcTopic"."jiancedianID", "snStorageEssMeterYcTopic".ts, "snStorageEssMeterYcTopic"."jiancedianID", "snStorageEssMeterYcTopic"."ess_meter_negativeacticeT", "snStorageEssMeterYcTopic"."ess_meter_positiveacticeT", "snStorageEssMeterYcTopic".ts, "snStorageEssMeterYcTopic".ess_meter_cos, "snStorageEssMeterYcTopic".ess_meter_f, "snStorageEssMeterYcTopic".ess_meter_ia, "snStorageEssMeterYcTopic".ess_meter_ib, "snStorageEssMeterYcTopic".ess_meter_ic, "snStorageEssMeterYcTopic".ess_meter_negativeacticef, "snStorageEssMeterYcTopic".ess_meter_negativeacticeg, "snStorageEssMeterYcTopic".ess_meter_negativeacticej, "snStorageEssMeterYcTopic".ess_meter_negativeacticep, "snStorageEssMeterYcTopic".ess_meter_p, "snStorageEssMeterYcTopic".ess_meter_positiveacticef, "snStorageEssMeterYcTopic".ess_meter_positiveacticeg, "snStorageEssMeterYcTopic".ess_meter_positiveacticej, "snStorageEssMeterYcTopic".ess_meter_positiveacticep, "snStorageEssMeterYcTopic".ess_meter_q, "snStorageEssMeterYcTopic".ess_meter_ua, "snStorageEssMeterYcTopic".ess_meter_ub, "snStorageEssMeterYcTopic".ess_meter_uc.",
"execution_time_ms": 2
}

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

Successfully merging a pull request may close this issue.

3 participants