Member since
03-11-2020
18
Posts
0
Kudos Received
4
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1692 | 12-10-2020 02:56 PM | |
4050 | 09-29-2020 03:29 AM | |
938 | 03-17-2020 10:40 AM | |
1845 | 03-12-2020 09:53 AM |
12-10-2020
02:56 PM
Hello Akash, Thanks for your feedback. Actually, its work fine if I change my query as below: SELECT
DISTINCT T1.block_id AS block_id,
T1.block_name AS block_name,
T1.block_kp_begin AS block_kp_begin,
T1.block_kp_end AS block_kp_end,
T2.ap_track_id AS ap_track_id,
T2.ap_kp_in_track AS ap_kp_in_track,
T2.ap_physical_name AS ap_physical_name,
T3.track_name AS track_name,
T3.track_type AS track_type
FROM amsterdam.amd_block_info T1
LEFT JOIN amsterdam.amd_ap_info T2 ON T1.track_id = T2.ap_track_id
LEFT JOIN amsterdam.amd_track_info T3 ON T1.track_id = T3.track_id; Here all I needed to define my variable as Alias again then the problem fixed.
... View more
09-29-2020
03:29 AM
Used below formula to resolve my problem ${field.value:substring(0,21):toDate("MMM dd,yyyy HH:mm:ss"):format("yyyy-MM-dd HH:mm:ss")}.${field.value:substring(22,28)} We separately added last 6 digit using .${field.value:substring(22,28)} after the time format.Otherwise, nifi can not process 6 digit microsecond.
... View more
04-19-2020
05:13 PM
Hi @DarkStar
As this thread was marked 'Solved' in March of 2018 you would have a better chance of receiving a resolution by starting a new thread. This will also provide the opportunity to provide details specific to your XML source that could aid others in providing a more targeted answer to your question.
... View more
03-24-2020
05:23 AM
Hello mburgess, I am able to extract attributes from using GetFile>SplitXml> EvaluateXQuery processor. Now, can you please tell me how can I store these dynamic attributes to the PostgreSQL database using PutSQL processor ? Is this the correct expression I am putting in PutSQL? INSERT INTO alstom_radioscopy_amsterdam_blue."xml_log"(block_id,kp_begin,kp_end) VALUES (${block_id.text()},${kp_begin.text()},${kp_end.text()});
... View more
03-17-2020
10:40 AM
Hello all, The problem has been resolved. First, I ingested the all the attributes as a text in the PostgreSQL table. Then converted the text data to integer type with flowing command. ALTER TABLE public."tab" ALTER COLUMN col type int using nullif(col,'')::int Hope this will be helpful for others.
... View more
03-12-2020
09:53 AM
Hello Steve, Thanks for your answer. Don't know why your provided answer is not working in my case. But I solved it in another way which I am sharing here for others timestamp : ([0-9]{4})-([0-1][0-9])-([0-3][0-9])\s([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9]).(\d*) source_ip : (?:[0-9]{1,3}\.){3}[0-9]{1,3} Mac : ([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2}) dbm : (\d*)\z Thanks!
... View more