Reranko05 commented on issue #49674: URL: https://github.com/apache/arrow/issues/49674#issuecomment-4273451771
Hi @paleolimbot, I was able to reproduce this. The issue occurs because `DictionaryBuilder`reconstructs the `DictionaryType` without preserving the ordered flag, which defaults to false. I implemented a fix in `MakeEmptyArray` to restore the original type after building the array, and added a test that verifies the ordered flag is preserved. Before opening a PR, I wanted to confirm whether this scoped fix is preferred, or if you'd rather address it at the `DictionaryBuilder` level. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
