Member since
07-29-2020
574
Posts
323
Kudos Received
176
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 3556 | 12-20-2024 05:49 AM | |
| 3812 | 12-19-2024 08:33 PM | |
| 3602 | 12-19-2024 06:48 AM | |
| 2343 | 12-17-2024 12:56 PM | |
| 3091 | 12-16-2024 04:38 AM |
04-19-2023
03:16 AM
Thank you sir @SAMSAL . I am very grateful, at the moment, your solution does the job. Also, i would love to learn JoltTransformation from you. Thanks once again.
... View more
04-17-2023
02:29 PM
Thank you @SAMSAL. I can always count on you to respond with good ideas. It didn't occur to me to include just a single parameter in the math function because the documentation shows using "scalb" and "pow" methods with the second parameter as the value to pass to the input method. But also, I was trying to use a Double because they documentation says "toRadians" only accepts a double, and the NiFi expression language docs shows using a "toDouble()", but "toDouble" doesn't seem to be supported. Seems to be an inconsistency in the docs. Your suggestions were pretty close. Below is the final result which did the trick. ${latitude:toDecimal():math("toRadians")} Thank you again!
... View more
03-27-2023
03:13 AM
1 Kudo
Thanks @SAMSAL , everything it works fine....
... View more
03-15-2023
08:43 AM
Thank you very much SAMSAL, I apreciate it, specially the references you provide.
... View more
03-11-2023
11:00 AM
Hi Samsal - that's perfect. Many thanks , Rob 👍
... View more
03-09-2023
08:49 AM
As @SAMSAL pointed out, queryrecord is the best and easiest method to use. Here, i have created a sample flow for your use as pix attached. I hope it helps.
... View more
03-05-2023
04:40 PM
I apologize, I forgot that you are talking about an Avro format and not json. In this I think you need to pass your own avro schema. You can first convert Avro to Json using ConvertAvroToJSON processor , then use ConvertRecrod which can be configured as follows: In the AvroRecordWrite , you can set your schema with the proper record\namespace values. For Example in my case I used the "User Schema Text" strategy and either provide the schema directly in the Schema Text Property or reference it using flowfile attribute ${avro.schema} using Expression Language. The Schema Text : {
"type": "record",
"name": "bank",
"namespace": "org.xyz.com",
"fields": [
{
"name": "AGENT_CODE",
"type": [
"null",
"string"
]
},
{
"name": "CORR_ACC_NO",
"type": [
"null",
"string"
]
},
{
"name": "LOCAL_ACC_NO",
"type": [
"null",
"string"
]
}
]
} Hope that helps
... View more
03-02-2023
09:42 AM
@rahul_loke Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks
... View more
02-19-2023
10:34 PM
Hi SAM, Actually it worked for me now. No error now. Thank you for your help.
... View more