Code Monkey home page Code Monkey logo

bwarm-data-load's People

Contributors

hcuk94 avatar jasrys avatar raphaelamselli-mlc avatar saltzmanjoelh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bwarm-data-load's Issues

Wrong data types in the create_table scripts

Hello. I noticed the table unclaimed_works contain the isrc column as a varchar(11) and the percentileforprioritisation as an integer, whereas the data in recent dump files are in fact varchar(12) (as an ISRC should be) and float.

To make this data run on my database server (I use Postgres so I adapted the scripts) I had to perform the following requests:

ALTER TABLE unclaimed_works ALTER COLUMN isrc TYPE VARCHAR(12);

ALTER TABLE unclaimed_works ALTER COLUMN percentileforprioritisation TYPE FLOAT;

https://github.com/TheMLC/bwarm-data-load/blob/main/MySQL/create_database.sql#L165
https://github.com/TheMLC/bwarm-data-load/blob/main/MySQL/create_database.sql#L175

I notice the same errors occur in the SQL Server create_database.sql script.

Specified key was too long; max key length is 3072 bytes

Mysql server version: 8.0.23 Homebrew

Running the create_database.sql script causes a max key length error.

image

I suspect this is related to declaring the FeedProvidersWorkId as a 3000 length VARCHAR and then attempting to set it as the primary key of the table.

Perhaps an auto-incrementing INT would work better in this case? (What if different FeedProviders have the same WorkId? e.g. Spotify has The Beatles' "Penny Lane" with a WorkID of 123 while Apple has WorkId 123 assigned to The Red Hot Chili Peppers' "Californication")

This will likely be a concern for other tables as well as they also reference 3000 length VARCHARs as their primary keys.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.