Remove the bug, self calculating really make things complicated
Merge branch 'ENG-4696-truncate' into ENG-extract
Fix the bug for extract() function with new boost