Passer au contenu

AWS Timestream convert HEX string

0

Hi,

Is there a way to convert a hex string to an INT in AWS timestream? I cant find any functions that are supported to do this.

Thanks!

Mike

demandé il y a 3 ans448 vues
1 réponse
1
Réponse acceptée

Hi Mike, there are conversion functions available depending on your hex size:

select from_big_endian_64(from_hex('00000000DEEDDEED')) or select from_big_endian_32(from_hex(‘DEEDDEED’))

AWS
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.