We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First, thank you for creating Jolt. It is an extremely helpful library and we use I use it constantly in my NiFi dataflows.
Unfortunately, I found a bug in modify-overwrite-beta while handling text with UTF-8 characters. Please see the example below:
{ "text" : "Video length 2:19👇 authentication \n\nThe_Castle_Runs_RED_yes🔴 https://t.co/MZWmLJLggL", "entities" : { "UrlTxT" : [ { "indices" : [ 61, 73 ] } ], "TimeTxT" : [ { "indices" : [ 13, 17 ] } ] } }
[ { "operation": "modify-overwrite-beta", "spec": { "entities": { "*": { "*": { "text": "=substring(@(4,text), @(1,indices[0]), @(1,indices[1]))" } } } } } ]
{ "text" : "Video length 2:19👇 authentication \n\nThe_Castle_Runs_RED_yes🔴 https://t.co/MZWmLJLggL", "entities" : { "UrlTxT" : [ { "indices" : [ 61, 73 ], "text" : "https://t.co/MZWmLJLggL" } ], "TimeTxT" : [ { "indices" : [ 13, 17 ], "text" : "2:19" } ] } }
{ "text" : "Video length 2:19?? authentication \n\nThe_Castle_Runs_RED_yes?? https://t.co/MZWmLJLggL", "entities" : { "UrlTxT" : [ { "indices" : [ 61, 73 ], "text" : "? https://t." } ], "TimeTxT" : [ { "indices" : [ 13, 17 ], "text" : "2:19" } ] } }
The text was updated successfully, but these errors were encountered:
Reproduce UTF8 substring issue
49ba647
Ref: bazaarvoice#1064
34fc68d
Fix UTF8String substring issue
a4adb21
Close bazaarvoice#1064 ref: https://stackoverflow.com/questions/17524432/substring-or-characterat-method-for-utf8-strings-with-2-bytes-in-java
Successfully merging a pull request may close this issue.
First, thank you for creating Jolt. It is an extremely helpful library and we use I use it constantly in my NiFi dataflows.
Unfortunately, I found a bug in modify-overwrite-beta while handling text with UTF-8 characters.
Please see the example below:
Input
modify-overwrite-beta Transform
Expected Output
Jolt Output from https://jolt-demo.appspot.com/#inception
The text was updated successfully, but these errors were encountered: