Skip to content

Conversation

@erwan-koffi
Copy link

@erwan-koffi erwan-koffi commented Mar 4, 2025

Unload command in Redshift supports an INCLUDE option, which has not been supported by this macro.

This change is aimed toward supporting this functionality.

The INCLUDE keyword will only work if the partition_by option has been set.

Description & motivation

Unload command in Redshift supports an INCLUDE option, which has not been supported by this macro.

This change is aimed toward supporting this functionality.

Changes:

  • add an optional include_partition argument to unload_table defaulting to False to force inclusion of partition columns in unloaded files

Checklist

  • I have verified that these changes work locally
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)

Unload command in Redshift supports an INCLUDE option, which has not been supported by this macro.

This change is aimed toward supporting this functionality.

The INCLUDE keyword will only work if the partition_by option has been set.
Updating the README to include the new option in the unload macro signature
@erwan-koffi erwan-koffi changed the title unload: add include_partition option to include partition columns when doing unloads unload_table: add include_partition option to include partition columns when doing unloads Mar 4, 2025
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.

1 participant