### Does this PR have any customer impact?
No(ish)
### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Feature
### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No
### Release Note (Refer [Template](../docs/release_notes/template.md))
N/A
### Description
Implement truncation for documents + add testing.
Along with this fix a bug in array truncation.
Related work items: #2964175