This is a weird one which took a while to get to the root cause of!
Reproducible like this:
sc <- spark_connect(method = "databricks_connect", serverless = TRUE, version = "16.1")
df <- tibble(x = NA_character_)
tbl_name <- "x.y.z"
spark_df <- sparklyr::copy_to(sc, df, tbl_name)
spark_write_table(spark_df, tbl_name, "overwrite")
Strangely, the data shows up in the Databricks GUI with Type 'void':

But when I try and check the Sample Data I get an error, and I'm also unable to access the data through normal pyspark methods:

I don't think this issue manifests with other datatypes, e.g. plain old NA (logical).
This is a weird one which took a while to get to the root cause of!
Reproducible like this:
Strangely, the data shows up in the Databricks GUI with Type 'void':
But when I try and check the Sample Data I get an error, and I'm also unable to access the data through normal pyspark methods:
I don't think this issue manifests with other datatypes, e.g. plain old
NA(logical).