Ian
03/28/2023, 6:06 AMschema": {
"date": {
"data_type": "string",
"partition_column": true,
"nullable": false
},
"shift": {
"data_type": "string",
"partition_column": false,
"nullable": false
}
}
*the above is the schema of the table that we have created but when using deltaTable.sc*hema() it gives the below schema
schema": {
"date": {
"data_type": "string",
"partition_column": true,
"nullable": true
},
"shift": {
"data_type": "string",
"partition_column": false,
"nullable": true
}
}
nullable is returned true when we have set it to false
we are using spark to create the delta tablertyler
03/28/2023, 6:10 AM_delta_log/
directories .json
files?Ian
03/28/2023, 6:10 AMrtyler
03/28/2023, 6:15 AMIan
03/28/2023, 6:31 AM{"protocol":{"minReaderVersion":1,"minWriterVersion":2}}
{"metaData":{"id":"e34b6c7d-e6f3-48c2-87c4-b258a75ae0a3","format":{"provider":"parquet","options":{}},"schemaString":"{\"type\":\"struct\",\"fields\":[{\"name\":\"date\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}},{\"name\":\"shift\",\"type\":\"string\",\"nullable\":true,\"metadata\":{}}]}","partitionColumns":[],"configuration":{},"createdTime":1679984411962}}
{"add":{"path":"part-00000-9ea731c9-bf1c-4f97-b76c-3b36acb9960b-c000.snappy.parquet","partitionValues":{},"size":393,"modificationTime":1679984412396,"dataChange":true}}
{"commitInfo":{"timestamp":1679984412438,"operation":"WRITE","operationParameters":{"mode":"ErrorIfExists","partitionBy":"[]"},"isolationLevel":"Serializable","isBlindAppend":true,"operationMetrics":{"numFiles":"1","numOutputRows":"0","numOutputBytes":"393"},"engineInfo":"Apache-Spark/3.2.1 Delta-Lake/1.1.0"}}
rtyler
03/28/2023, 6:38 AMIan
03/28/2023, 6:40 AMrtyler
03/28/2023, 6:41 AMmain
.Ian
03/28/2023, 6:41 AM