Skip to content

Fixed issues 2547 and 2557#2560

Merged
Hydrocharged merged 1 commit into
mainfrom
daylon/issues-8
Apr 8, 2026
Merged

Fixed issues 2547 and 2557#2560
Hydrocharged merged 1 commit into
mainfrom
daylon/issues-8

Conversation

@Hydrocharged
Copy link
Copy Markdown
Collaborator

This fixes:

This introduces a new function type which mirrors the C-language variadic function implementation. These functions differ from standard PostgreSQL variadic functions, as normally variadic functions require that all variadic parameters have the same type. This limitation is not true for C-language functions. This was required to implement a valid concat function, as we were previously relying on GMS' built-in version, which is not correct for Postgres. I also corrected some tests that enforced the incorrect behavior.

This also fixes a bug in JSON parsing. It was already known that Go's JSON library converts escaped characters into their original forms, however we were attempting to preemptively handle the incorrect conversion. This has been changed, as we can cleanup the output since the unescaped forms are invalid JSON anyway, which fixes the behavior and makes our output more accurate.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Main PR
covering_index_scan_postgres 1097.83/s 1079.35/s -1.7%
index_join_postgres 157.92/s 156.91/s -0.7%
index_join_scan_postgres 195.58/s 195.32/s -0.2%
index_scan_postgres 12.05/s 11.96/s -0.8%
oltp_point_select 2460.14/s 2432.80/s -1.2%
oltp_read_only 1847.10/s 1821.92/s -1.4%
select_random_points 126.80/s 125.81/s -0.8%
select_random_ranges 837.85/s 827.24/s -1.3%
table_scan_postgres 11.78/s 11.56/s -1.9%
types_table_scan_postgres 5.45/s 5.40/s -1.0%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Main PR
Total 42090 42090
Successful 17911 17912
Failures 24179 24178
Partial Successes1 5634 5635
Main PR
Successful 42.5541% 42.5564%
Failures 57.4459% 57.4436%

${\color{lightgreen}Progressions (1)}$

jsonb

QUERY: SELECT '"\n\"\\"'::jsonb;

Footnotes

  1. These are tests that we're marking as Successful, however they do not match the expected output in some way. This is due to small differences, such as different wording on the error messages, or the column names being incorrect while the data itself is correct.

Copy link
Copy Markdown
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@Hydrocharged Hydrocharged merged commit 50d0d3d into main Apr 8, 2026
17 checks passed
@Hydrocharged Hydrocharged deleted the daylon/issues-8 branch April 8, 2026 22:50
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.

unescaped newlines in JSON output concat('', NULL, '') incorrectly returning null string

2 participants