Pinot Version | 1.10.0 |
---|---|
Code | startreedata/pinot-recipes/null-values |
The Ugly Truth
and Dear John
are both missing a value for genre
, which we’ll explore in this guide.
movies
schema.
You can run the following command to run the import on the movies_no_null
table:
movies_nuls
table:
movies_no_nulls
table:
genre | id | title | year |
---|---|---|---|
Comedy | 361248901147483647 | Valentine’s Day | 2010 |
null | 332567813147483648 | The Ugly Truth | 2009 |
Romance | 346905752147483649 | P.S. I Love You | 2007 |
null | 300441473147483650 | Dear John | 2010 |
Fantasy | 394030854147483651 | The Curious Case of Benjamin Button | -2147483648 |
movies_no_nulls
table.
The genre
and year
columns in the movies_nulls
table, on the other hand, supports null values, which we can see by running the following query:
genre | id | title | year |
---|---|---|---|
Comedy | 361248901147483647 | Valentine’s Day | 2010 |
Romance | 346905752147483649 | P.S. I Love You | 2007 |
IS NOT NULL
clause.