ibmcb / cbtool

Cloud Rapid Experimentation and Analysis Toolkit
Apache License 2.0
78 stars 49 forks source link

convert the byte arrays to strings using UTF-8 encoding #434

Closed tli16 closed 9 months ago

tli16 commented 10 months ago

In recent tests we noticed that the tables names are being returned as byte arrays in python3 while _latest_tables and _indexed_tables contains regular strings, which leads to the failure of finding table correctly. For instance, latest_management_VM_username is shown as bytearray(b'latest_management_VM_username') in _tables_found.

Convert the byte arrays to regular strings using UTF-8.

maugustosilva commented 9 months ago

@mraygalaxy @mraygalaxy2 I believe you are the one using the MySQL backend more heavily. Are you ok with this merge?