I am trying to split the data of column based on '%' symbol. But some of the data that I have does not contain '%' symbol.
Input data
|Default_value |
+-------------------+
| 10% OF VALUE|
| 20% OF VALUE|
| This is null VALUE|
| 0 is the value|
+-------------------+
Expected output
|value | Description |
+-------------------+-------------------+
| 10%| OF VALUE |
| 20%| OF VALUE |
| |This is null VALUE |
| | 0 is the value |
+-------------------+-------------------+
I tried with regex on '%' but the row which does not have '%' is coming under 'value' column and I want that in 'Description' column.