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.

Unsupported data type - uuid

See original GitHub issue

Following issue #771 I run some additional test and I found that all the following commented columns have data types that are not support in DAB yet.

drop table if exists dbo.datatypetest;

create table dbo.datatypetest
(
    id int not null primary key,
    --a_time time(7) not null,
    a_date date not null,
    a_datetime datetime not null,
    a_datetime2 datetime2(7) not null,
    --a_datetimeoffset datetimeoffset not null,
    --a_guid uniqueidentifier not null  
)
go

insert into dbo.datatypetest 
    (
        id
        --,a_time
        ,a_date
        ,a_datetime
        ,a_datetime2
        --,a_datetimeoffset
        --,a_guid
    )
    values
    (
        1
        --,sysutcdatetime() 
        ,sysutcdatetime()
        ,sysutcdatetime() 
        ,sysutcdatetime() 
        --,sysdatetimeoffset()
        --,newid()
    )
go

select * from dbo.datatypetest

those a very common data types and thus supporting them is critical. I’m closing #771 as this is more generic.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yorekcommented, Sep 12, 2022

Order of priority for supporting the missing data types:

P0

  • UNIQUEIDENTIFIER

P1

  • JSON
    • for Azure SQL DB as described in https://github.com/Azure/data-api-builder/issues/444
    • for PostgreSQL using the native JSON type (or JSONB: I’ll let PostgreSQL PM and experts decide what is better)
    • for MariaDB/MySQL I don’t know if there is native JSON type support, so also here I’ll defer the decision to MySQL/MariaDB PM/Experts

P2

  • Time
  • DateTimeOffset
1reaction
Aniruddh25commented, Sep 2, 2022

This is a known issue - previously reported in #177. We can try to accommodate few of these, but its quite possible this may have to be pushed to Oct. Depending on @gledis69 availability to work on this in September.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unsupported PostgreSQL data types
Lists the PostgreSQL data types that are not supported in Amazon Redshift.
Read more >
Postgresql unsupported database type: uuid · Issue #3303
I encountered an error while using goctl to generate a PostgreSQL model. The error message states "unsupported database type: uuid.
Read more >
Unable to import or display columns of data type UUID ...
In the Spotfire Data Connector for PostgresSQL, columns of data type UUID are not displayed in the "Columns in selected view" section. Spotfire ......
Read more >
Thread: Unsupported Type UUID - Postgres Professional
Hello, I'm trying to import data from a PostgreSQL database into Microsoft Access using the ODBC drier. Any table with a uuid column...
Read more >
Unsupported Data Types
Unsupported Data Types ¶ ; LOB (Large Object). BLOB. BINARY can be used instead; maximum of 8,388,608 bytes. For more information, see String...
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