I am working with Pyspark in Azure Databricks. I have a stream set up that parses log files in json format. All data points have the same schema structure however some of the properties are named differently for different data points. The property names differ by the case type of the first letter only.
Example: The schema contains a property named "isAdmin". However for some of the data points this same property is named "IsAdmin". Since in the schema definition the property is named "isAdmin" all data points containing a property called "IsAdmin" will be stored as "isAdmin == null". I would like to store the value contained in either "isAdmin" or "IsAdmin" depending on which of them are
I am working with Pyspark in Azure Databricks. I have a stream set up that parses log files in json format. All data points have the same schema structure however some of the properties are named differently for different data points. The property names differ by the case type of the first letter only.
Example: The schema contains a property named "isAdmin". However for some of the data points this same property is named "IsAdmin". Since in the schema definition the property is named "isAdmin" all data points containing a property called "IsAdmin" will be stored as "isAdmin == null". I would like to store the value contained in either "isAdmin" or "IsAdmin" depending on which of them are