I created a DataFrame from an existing table where two columns are stored as binary. For the further processing I need the binary-content as string.
Example:
+--------------------+--------------------+
| DB_KEY| PARENT_KEY|
+--------------------+--------------------+
|[00 50 56 88 0A] |[00 50 56 88 12] |
Schema:
root
|-- DB_KEY: binary (nullable = true)
|-- PARENT_KEY: binary (nullable = true)
Content of binary should be used as string like:
DB_KEY = "005056880A"
PARENT_KEY = "0050568812"
Can you please give me any hints how to do this?