Unusual Arbitrary Attribute
Published:
This content is based on the issue I faced while doing analysis of the arbitrary attributes of HL7. It is common in cases where arbitrary attributes are similar to those of HL7
When we are fetching data in WSO2 DAS through ESB from HAPI test-panel, we are also getting arbitrary attributes related to HL7 Messaging, in addition to existing attributes related to message flow. These arbitrary attributes are for the content of the message passed, it contains a detailed classification of each element of HL7 messages that were transmitted.
For better use of HL7 messaging, we need to analyze these messages by indexing these arbitrary fields. We can add this arbitrary field as a normal or generic arbitrary field. But when we are analyzing we can’t directly use them.
It is because these arbitrary fields consist of ., which causes the following error
Caused by: org.apache.spark.sql.AnalysisException: cannot resolve '_MSH.MessageType' given input columns:
[meta_server_name, correlation_activity_id, type, timestamp,__MSH.MessageType , content,service_name, meta_host,
operation_name, message_direction, status];
To resolve this error we need to add **`** this while doing COUNT or SELECT or INSERT query (not essentially require for CREATE schema) in spark.
