-
Notifications
You must be signed in to change notification settings - Fork 15
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
InfluxDB v1 retention policy support #51
Comments
Dear @AntoniJakubiak , |
Hi, I am sure, that the retention policies could be implemented without the change in influx cxx client library. Important queries are:
Basic implementation idea starts here:
This will allow you to define another
Reading
Having options, there is a need to modify measurement name. It's quite simply:
There is also a need to update import schema.
Kind regards |
@AntoniJakubiak I noticed that the proposed modification seems tailored for the Go client, which supports only InfluxDB v1. However, this modification might not extend the retention policy support to users of the cxx-client, as GetV1 in the cxx-client does not include a retention policy parameter. Given this, the modification might only be feasible for Go client users. Could we explore ways to also accommodate cxx-client users? |
Hi, I need a permission from my company to contribute to open-source, so I cannot submit a patch right now. However, I will apply for it. This modification works with InfluxDB CXX client. I have not tested it with Go client. Kind regards |
Hello, I am sending a patch for #50 and #51 0001-niffler-to-pgspider.patch.gz If you are interested, I can join Your project, create a branch and pull request. Kind regards |
Hello, @antonijakubiak-samsung ! Please look at my PRs in https://github.com/pgspider/sqlite_fdw/commits/master/ In pgspider project usually there are only 20-25% of C/C++ code, 60-70% of tests and 10-15% of discussing about code. If you can provide tests for your changes this will be great and you'll have a 3-4 month perspective of merge. Did I scare your work? |
Hi @mkgrgis. I am not scared. What is the contribution work-flow, e.g.: repository fork or feature branch? Best |
Fork of repository -> creating a branch for new feature -> one full initial commit (code changes + documentation changes + tests) -> PR for pgspider team -> review ... other commits by review ... Testing scripts for getting multi-versional PostgreSQL C environment is here. |
Hi @mkgrgis Sadly, compiling and testing your project is complicated for me. I think, it could depend on my system. Do you have more detailed instruction for compiling and testing? Instead of writing the instruction we could use Dockerfile. For example, here is a Dockerfile which I am using to compile InfluxDB FDW.
Then:
Could you teach me how to compile and test Kind regards |
Yes. There is special common testing environment scripts https://github.com/pgspider/fdw_testing_scripts for all of FDWs of Also you can add GitHub auto testing by copying https://github.com/pgspider/sqlite_fdw/tree/master/GitHubActions and adopting this scripts to InfluxDB instead of SQLite.
I hope this will enough for you, @antonijakubiak-samsung Any questions will be appreciate. |
Hi, I am trying to run the system tests. I have the following results:
It seems, that the test results depends on the environment settings. For example regr.diff: PostgreSQL sort order depends on the locale:
The sort order depends on the locale settings:
It means, that I should run the
In order to reduce environment dependencies, we could create a containerized build environment. In such containerized environment, we could get a clean Linux distribution, get dependencies, build and test the software in 100% repeatable form. I'm sending example docker files which could be executed with Kind regards |
Hello, @antonijakubiak-samsung !
Tests for most of
Look like this is
This is a question to pgspider team. @t-kataym , could you please ask some of authors of influxdb_fdw about this?
There is 3 supported InfluxDB versions, but README doesn't describe details of the testing environment
This is also a question to pgspider team. I know nothing more about than docker file content. |
@weiting1lee , maybe you can help about previous comment ? |
Thank you, @mkgrgis @AntoniJakubiak, I greatly appreciate your efforts in testing and your suggestion regarding the testing environment. Using a containerized environment is a great idea, and we are also considering employing GitHub Actions for testing, similar to what sqlite_fdw uses, to facilitate easier testing for all developers.
For support up to PostgreSQL 16.0, we are using Golang 1.20.4.
In our environment, we use InfluxDB v1: 1.8.10 and InfluxDB v2: 2.2.0.
There are no special configurations in our setup. If you continue to encounter difficulties with this setup, please do share more details so we can assist you better. |
Does influxdb_fdw support retention policies?
It seems, that it reads only from the default retention policy on InfluxDB v1.
The text was updated successfully, but these errors were encountered: