In Apache Spark SQL (Azure Databricks), I created a table like this:
CREATE TABLE t(
a BIGINT,
b BIGINT NOT NULL
)
I have verified that I have one nullable column and one non-nullable column, as I get an error if I try to insert NULL in column b but I can insert null in column a.
However, the following statement
DESCRIBE TABLE t
does not tell me which columns are nullable and which are not null. Neither does DESCRIBE TABLE EXTENDED. How can I get the full description?