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: Prod Promotion -- v0.3.3 #211

Merged
merged 9 commits into from
Feb 9, 2025
Merged

feat: Prod Promotion -- v0.3.3 #211

merged 9 commits into from
Feb 9, 2025

Conversation

philippemnoel
Copy link
Collaborator

Ticket(s) Closed

  • Closes #

What

Why

How

Tests

theory and others added 8 commits February 3, 2025 19:12
* Add PGXN META.json and release workflow

Add a `Makefile` to automate populating the version in the `META.json`
and creating the zip file. `.gitattributes` prevents unnecessary files
from inclusion in the zip file. `.github/workflows/pgxn-release.yml`
uses the `pgxn/pgxn-tools` OCI to publish the zip file on PGXN when a
server tag is pushed.

* Update META.json.in

Signed-off-by: Philippe Noël <[email protected]>

* Update META.json.in

Signed-off-by: Philippe Noël <[email protected]>

* Update META.json.in

Signed-off-by: Philippe Noël <[email protected]>

* Update and rename pgxn-release.yml to publish-pg_analytics-pgxn.yml

Signed-off-by: Philippe Noël <[email protected]>

---------

Signed-off-by: Philippe Noël <[email protected]>
Co-authored-by: Philippe Noël <[email protected]>
* parquet udfs take in pgrelation

* tests

* upgrade script

* checkout origin/dev

* 0.3.3

* fix update script name

* cargo.lock

* drop function in upgrade script

* Adapt to 0.3.3

* lock

---------

Co-authored-by: Philippe Noël <[email protected]>
Copy link

github-actions bot commented Feb 8, 2025

A schema difference was detected.

A suggested "upgrade.sql" script entry might be:

DROP FUNCTION IF EXISTS parquet_describe(files text);
CREATE OR REPLACE FUNCTION parquet_describe(relation regclass) RETURNS TABLE(column_name text, column_type text, "null" text, key text, "default" text, extra text) AS 'MODULE_PATHNAME', 'parquet_describe_wrapper' LANGUAGE c STRICT;
DROP FUNCTION IF EXISTS parquet_schema(files text);
CREATE OR REPLACE FUNCTION parquet_schema(relation regclass) RETURNS TABLE(file_name text, name text, type text, type_length text, repetition_type text, num_children pg_catalog.int8, converted_type text, scale pg_catalog.int8, "precision" pg_catalog.int8, field_id pg_catalog.int8, logical_type text) AS 'MODULE_PATHNAME', 'parquet_schema_wrapper' LANGUAGE c STRICT;
The full diff between both schemas is:
217c217
< -- src/api/parquet.rs:48
---
> -- src/api/parquet.rs:52
220c220
< 	"files" TEXT /* &str */
---
> 	"relation" regclass /* pgrx::rel::PgRelation */
270c270
< -- src/api/parquet.rs:66
---
> -- src/api/parquet.rs:73
273c273
< 	"files" TEXT /* &str */
---
> 	"relation" regclass /* pgrx::rel::PgRelation */

@philippemnoel philippemnoel merged commit a3c8dc8 into main Feb 9, 2025
16 checks passed
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.

3 participants