Need help in converting a string to uint64 datatype

128 views
Skip to first unread message

kgop...@google.com

unread,
Jul 10, 2014, 4:28:49 AM7/10/14
to golan...@googlegroups.com
Hello Viewers

I see an error when converting a data from string datatype to uint64 datatype in SQLMR or PDQL, it works good in PLX (Dremel).
Please suggest to resolve this concerns.

Sample Syntax:

select UINT64((concat('0X',abc)),16) as c1, country_code from DREMEL ('','def')

Thanks.

Ian Lance Taylor

unread,
Jul 10, 2014, 11:33:50 AM7/10/14
to kgop...@google.com, golang-dev
That's SQL, not Go.

In Go to convert from string to uint64 use
http://golang.org/pkg/strconv/#ParseUint .

Ian
Reply all
Reply to author
Forward
0 new messages