Skip to content

join.time result is empty #357

@wuwenrufeng

Description

@wuwenrufeng

Specifications

  • Client Version: v2.10.0
  • InfluxDB Version: v.24
  • Platform: unbuntu22.04

Steps to reproduce

1.flux: flux1.flux
`left = from(bucket: "alarm")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == "alarm" and strings.containsStr(v: r.taskName, substr: "a") and r.error == "type")
|> group()

right = from(bucket: "alarm")
|> range(start: -24h)
|> filter(fn: (r) => r._measurement == "alarm_prevent")
|> group()

joins = join.time(
left: left,
right: right,
as: (l, r) => ({l with expiredField: r.expiredField}),
)
yield joins`
2. flux flux1.flux, it return data
3.result, err := queryAPI.Query(context.Background(), fluxScriptStr); it return empty
...

Expected behavior

return data

Actual behavior

retrun empty

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions