question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Adding UUID (Ordered) display transformer for binary data in table

See original GitHub issue

This is a feature request for DBeaver to allow displaying UUID in the Ordered form described here stored in an MySQL / MariaDB in a binary(16) field as IDs: https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/

DELIMITER //  
CREATE DEFINER=`root`@`localhost` FUNCTION `ordered_uuid`(uuid BINARY(36))   
RETURNS binary(16) DETERMINISTIC   
RETURN UNHEX(CONCAT(SUBSTR(uuid, 15, 4),SUBSTR(uuid, 10, 4),SUBSTR(uuid, 1, 8),SUBSTR(uuid, 20, 4),SUBSTR(uuid, 25)));  
//  
DELIMITER ;

As far as my research went the existing UUID transformer in UUIDAttributeTransformer.java in realized as a plugin for DBeaver.

Currently using DBeaver 5.0.2 CE with MariaDB 10.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Apr 12, 2018

Ok. then let’s leave it as is for now. Thanks for contribution 😉

1reaction
rPramlcommented, Apr 12, 2018

Basically, every DBMS that uses binary storage for UUID will benefit from the re-ordering of the bytes - especially if UUID-Type 1 is used.

There are a handful projects on github that do the same re-ordering: https://github.com/search?utf8=✓&q=ordered+uuid&type= so the percona article might became a standard 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inserting and selecting UUIDs as binary(16) - Stack Overflow
I realize binary and an UUID string doesn't look identical, but shouldn't the selected data at least be just as long? Otherwise how...
Read more >
Pipelines - Hugging Face
These pipelines are objects that abstract most of the complex code from the library, offering a simple API dedicated to several tasks, including...
Read more >
Hibernate ORM 5.2.18.Final User Guide - Red Hat on GitHub
For Hibernate mapping features not supported by JPA we will prefer Hibernate extension ... UUID#getLeastSignificantBits and stores that as BINARY data.
Read more >
FME Transformers
Some formats incur extra overhead to store three-dimensional data; ... Features are added to the aggregate being built in the order they are ......
Read more >
FME Transformer Reference Guide 2021 - Documentation
FME® contains over 500 transformers that perform different types of data ... Table View: Displays the Feature Information values that are exposed to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found