I comes from the relational database world, so I am a little confused about that it seems like Spark SQL doest not leverage any schema constraint like Primary key, Foreign key and Not NULL constraint.
I believe that is why I always observe that some redundant notnull checking in the query plan.
So my question is that is there any possible way to let Spark SQL leverage these constraints if the data source ever defines them?
Thanks.
