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

feat(flux): add window aggregate pushdown rules #21085

Conversation

danxmoran
Copy link
Contributor

Part of #21069
Builds off of #21074

This took a lot more code than I expected, but the majority of what's added here is copied verbatim (maybe with import fixups) from 2.x. I'll comment explanations on each file.

Still TODO: Write some test cases using the new Flux test harness

@@ -3,6 +3,7 @@ package influxdb
import (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste from 2.x

@@ -2,6 +2,7 @@ package influxdb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste from 2.x

@@ -2,6 +2,7 @@ package influxdb_test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste from 2.x

@@ -7,6 +7,7 @@ import (
"github.com/influxdata/flux"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste from 2.x

@@ -6,6 +6,7 @@ require (
collectd.org v0.3.0
github.com/BurntSushi/toml v0.3.1
github.com/apache/arrow/go/arrow v0.0.0-20200923215132-ac86123a3f01
github.com/benbjohnson/tmpl v1.0.0 // indirect
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added automatically when I ran go generate, seems reasonable to have a version pinned here

@@ -1,5 +1,7 @@
package reads

//go:generate env GO111MODULE=on go run github.com/benbjohnson/tmpl -data=@types.tmpldata flux_table.gen.go.tmpl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasted from 2.x

@@ -1 +1,4 @@
package reads

//go:generate env GO111MODULE=on go run github.com/benbjohnson/tmpl -data=@array_cursor.gen.go.tmpldata array_cursor.gen.go.tmpl
//go:generate env GO111MODULE=on go run github.com/benbjohnson/tmpl -data=@array_cursor.gen.go.tmpldata -o=array_cursor_gen_test.go array_cursor_test.gen.go.tmpl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasted from 2.x

@@ -4,7 +4,6 @@ import (
"bytes"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasted from 2.x

@@ -0,0 +1,32 @@
[
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasted from 2.x

@@ -0,0 +1,190 @@
package reads
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasted from 2.x

@danxmoran
Copy link
Contributor Author

Closing this; will reopen in smaller pieces

@danxmoran danxmoran closed this Mar 30, 2021
@danxmoran danxmoran deleted the dm-backport-pushdowns-21069 branch March 30, 2021 14:37
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

Successfully merging this pull request may close these issues.

1 participant