Skip to main content
Question

Converting from BINARY to STRING in EMS?

  • Jan 28, 2022 4:28 AM UTC
  • 5 replies
  • 227 views

Converting from BINARY to STRING is available directly on On-Prem system.

But the same is not available on EMS or I am missing out on the feature.

Can you please suggest a good way to CONVERT BINARY to STRING.

 

I do not want to CAST AS STRING as that doesn't help. I need to CONVERT BINARY to STRING

5 replies

  • Jan 28, 2022 8:03 AM UTC

Hello,

 

you can try "BITSTRING_TO_BINARY" function - changes '0110000101100010' to 'ab'

 

https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/SQLReferenceManual/Functions/String/BITSTRING_TO_BINARY.htm

 

Let us know it that worked :)

 

Best Regards,

Mateusz Dudek


  • Jan 28, 2022 8:09 AM UTC

Hi Mateusz,

 

This function "BITSTRING_TO_BINARY" is not available in our EMS to be used.

Can we get that enabled to be used?

 


  • Jan 28, 2022 9:07 AM UTC

Let me add another scenario to this.

The Binary is in the form of VARBINARY (ie Encrypted).

Now that we need to convert this VARBINARY to STRING by decrypting


  • Jan 28, 2022 9:12 AM UTC

Hello,

 

Sorry, it seems to be Vertica 10.0.x function but it's not supported in CELONIS. I've also tried some PQL functions but i couldn't find naything that could help. Only thing i can think of is to user ML workbench and the python to convert these values.

 

Maybe it would be good idea to propose adding/enabling such option?

Let me know if you'll have any updates.

 

Best Regards,

Mateusz Dudek


  • Jan 28, 2022 10:10 AM UTC

Yes Mateusz. This is what we have been struggling with.

I will raise a ticket for adding a feature for it if not already available.

Thanks for your time though for trying out the same. Appreciate it.