Skip to content

How can I set a field to NULL using the Redshift Data API? #2619

Answered by lucix-aws
JoseAngel1196 asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't used redshift, but based on their documentation there it does seem to be flatly impossible to parameterize a NULL as you've surmised. I think you'd have to put it into the ExecuteStatementInput.Sql value directly.

Note that Field and its variant FieldMemberIsNull is an unrelated union that only appears in operation responses, specifically only in GetStatementResultOutput.Records. I assume that's how they model actual null values in records etc.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@JoseAngel1196
Comment options

@JoseAngel1196
Comment options

@JoseAngel1196
Comment options

@lucix-aws
Comment options

Answer selected by lucix-aws
@JoseAngel1196
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants