Skip to content

Conversation

@bogdantruta-firebolt
Copy link
Contributor

@bogdantruta-firebolt bogdantruta-firebolt commented May 15, 2025

As mentioned by @stepansergeevitch here: Streaming PR comment, there are some differences in typing between normal queries and streamed ones. The normal aliasing worked, but not for nullable types, which defaulted to the value provided in the response (i.e. numeric null instead of decimal null).

This behavior was present for other types as well, but since the change to 2.0, it was not noticable because of having the fallback to the actual response type (as was the mapping already).

This PR aims to correct the type mapping while also fixing the null keyword from complex types (in the current implementation it is being dropped)

@bogdantruta-firebolt bogdantruta-firebolt requested a review from a team as a code owner May 15, 2025 08:00
@bogdantruta-firebolt bogdantruta-firebolt force-pushed the FIR-45354-add-all-firebolt-types-tests-to-node-sdk branch from 796ce41 to cdbd9de Compare May 15, 2025 08:13
Copy link
Collaborator

@stepansergeevitch stepansergeevitch left a comment

Choose a reason for hiding this comment

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

LGTM, a couple of comments

@bogdantruta-firebolt bogdantruta-firebolt merged commit b47b841 into main May 19, 2025
4 checks passed
@bogdantruta-firebolt bogdantruta-firebolt deleted the FIR-45354-add-all-firebolt-types-tests-to-node-sdk branch May 19, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants