You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/29 06:18:13 UTC

[GitHub] [superset] juneauwang commented on pull request #12728: fix: Erroneous uuid generation for mysql fixed.

juneauwang commented on pull request #12728:
URL: https://github.com/apache/superset/pull/12728#issuecomment-769603234


   Hi guys, 
   Also ran into this issue and tried to implement before 1.0.1
   I manually implemented
   `MySQLDialect: """UPDATE %s SET uuid = U UNHEX(REPLACE(CONVERT(UUID() using utf8mb4), '-', ''));"""`
   but runs into 
   ```
   Traceback (most recent call last):
     File "/srv/python3/lib/python3.8/site-packages/sqlalchemy_utils/types/encrypted/encrypted_type.py", line 126, in decrypt
       decrypted = decrypted.decode('utf-8')
   UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 0: invalid continuation byte
   ```
   
   My versions: 
   Python 3.8.2
   mysql  Ver 14.14 Distrib 5.7.23-23, for Linux (x86_64) using  6.0
   SQLAlchemy             1.3.20
   SQLAlchemy-Utils       0.36.8
   apache-superset        1.0.0


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org