[SPARK-2239][SQL]Spark SQL basicOperator add Distinct operator

Hi all,
I want to add a new API in Spark SQL basicOperator.scala This operator will return a new SparkPlan containing the distinct elements .