Skip to main content
Solved

Partitioning on Transformed Fields


Forum|alt.badge.img
  • Contributor
  • 17 replies

Current advice on partitioning on a non-date field calls for creating a partitioning “bucket” using field transformations. While attempting to follow the instructions outlined here I encountered a problem. 

Partitioning works by creating a calculated field in the valid table that has the capacity to handle NULL values if the partition template is so configured. However, that same field, along with the calculated default value, is also present in the Raw table. 

This means that when anyone following TimeXtender’s guidance for non-date transformations executes the table, that execution will fail with the error “Cannot insert the value NULL into column ‘DW_PartitionKey’”

Is this a bug, or does the documentation for creating partitions need to be updated? 

Best answer by Christian Hauggaard

Hi @ekw9 

Can you please send some screenshots of the table and the partition settings used?

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • Contributor
  • 17 replies
  • April 8, 2024

Ah! A follow up to this: 

This problem ONLY occurs if you have custom data in the table. I believe this is because the custom data algorithm attempts to insert a NULL value into the caculated field. 


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

Hi @ekw9 

Can you please send some screenshots of the table and the partition settings used?


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

Hi @ekw9 just following up on this - could you please send some screenshots of the table and the partition settings used?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings