[SPARK-7278] [PySpark] DateType should find datetime.datetime acceptable
[SPARK-7278] [PySpark] DateType should find datetime.datetime acceptable

DateType should not be restricted to `datetime.date` but accept `datetime.datetime` objects as well. Could someone with a little more insight verify this?

Author: ksonj <kson@siberie.de>

Closes #6057 from ksonj/dates and squashes the following commits:

68a158e [ksonj] DateType should find datetime.datetime acceptable too

saltstar/spark,big-pegasus/spark,caneGuy/spark,zero323/spark,narahari92/spark,adrian-ionescu/apache-spark,liutang123/spark,andrewor14/spark,ajaysaini725/spark,HyukjinKwon/spark,panfengfeng/spark,tejasapatil/spark,aosagie/spark,taroplus/spark,akopich/spark,vinodkc/spark,eyalfa/spark,mike0sv/spark,JerryLead/spark,apache/spark,LantaoJin/spark,panfengfeng/spark,bravo-zhang/spark,rezasafi/spark,actuaryzhang/spark,ericvandenbergfb/spark,ahnqirage/spark,milliman/spark,JerryLead/spark,ptkool/spark,chuckchen/spark,ueshin/apache-spark,HyukjinKwon/spark,caneGuy/spark,minixalpha/spark,ron8hu/spark,xuanyuanking/spark,shubhamchopra/spark,minixalpha/spark,dongjoon-hyun/spark,szhem/spark,srowen/spark,hvanhovell/spark,SHASHANKB/spark,panfengfeng/spark,ptkool/spark,ddna1021/spark,gengliangwang/spark,zero323/spark,techaddict/spark,haowu80s/spark,WeichenXu123/spark,aray/spark,shuangshuangwang/spark,ahnqirage/spark,narahari92/spark,1haodian/spark,lvdongr/spark,shubhamchopra/spark,nlalevee/spark,gioenn/xSpark,jrshust/spark,Aegeaner/spark,szhem/spark,ueshin/apache-spark,zuotingbing/spark,apache/spark,liyichao/spark,kimoonkim/spark,tengpeng/spark,hhbyyh/spark,kissmetrics/spark,markhamstra/spark,poffuomo/spark,pgandhi999/spark,darionyaphet/spark,nilsgrabbert/spark,ron8hu/spark,joseph-torres/spark,jiangxb1987/spark,aray/spark,metamx/spark,WeichenXu123/spark,kissmetrics/spark,shaneknapp/spark,akopich/spark,spark-test/spark,rekhajoshm/spark,UndeadBaneGitHub/spark,aray/spark,jkbradley/spark,esi-mineset/spark,vinodkc/spark,ajaysaini725/spark,apache-spark-on-k8s/spark,apache-spark-on-k8s/spark,byakuinss/spark,rezasafi/spark,mahak/spark,esi-mineset/spark,shuangshuangwang/spark,aokolnychyi/spark,panfengfeng/spark,debugger87/spark,WindCanDie/spark,aokolnychyi/spark,mike0sv/spark,cloud-fan/spark,mzl9039/spark,aokolnychyi/spark,lxsmnv/spark,chuckchen/spark,jianran/spark,szhem/spark,map222/spark,jianran/spark,mahak/spark,1haodian/spark,matthewfranglen/spark,witgo/spark,setjet/spark,wangmiao1981/spark,highfei2011/spark,minixalpha/spark,gengliangwang/spark,apache-spark-on-k8s/spark,rednaxelafx/apache-spark,1haodian/spark,WindCanDie/spark,dhruve/spark,icexelloss/spark,UndeadBaneGitHub/spark,hhbyyh/spark,kissmetrics/spark,highfei2011/spark,Aegeaner/spark,HyukjinKwon/spark,chuckchen/spark,ron8hu/spark,ConeyLiu/spark,yanboliang/spark,bravo-zhang/spark,holdenk/spark,jiangxb1987/spark,zero323/spark,sahilTakiar/spark,liutang123/spark,lvdongr/spark,publicRoman/spark,map222/spark,kevinyu98/spark,cin/spark,huang1900/spark,actuaryzhang/spark,darionyaphet/spark,UndeadBaneGitHub/spark,saturday-shi/spark,kimoonkim/spark,SnappyDataInc/spark,pgandhi999/spark,ericvandenbergfb/spark,hhbyyh/spark,highfei2011/spark,setjet/spark,ibm-research-ireland/sparkoscope,highfei2011/spark,maropu/spark,milliman/spark,mike0sv/spark,saltstar/spark,shuangshuangwang/spark,darionyaphet/spark,huang1900/spark,wangmiao1981/spark,aray/spark,janewangfb/spark,janewangfb/spark,ptkool/spark,shaneknapp/spark,brad-kaiser/spark,icexelloss/spark,aosagie/spark,jianran/spark,rikima/spark,SHASHANKB/spark,JerryLead/spark,liyichao/spark,patrick-nicholson/spark,ddna1021/spark,facaiy/spark,cloud-fan/spark,shaneknapp/spark,adrian-ionescu/apache-spark,kimoonkim/spark,milliman/spark,szhem/spark,dbtsai/spark,someorz/spark,chuckchen/spark,dbtsai/spark,dbtsai/spark,xflin/spark,ioana-delaney/spark,hhbyyh/spark,Panos-Bletsos/spark-cost-model-optimizer,jkbradley/spark,caneGuy/spark,janewangfb/spark,tejasapatil/spark,debugger87/spark,maropu/spark,bdrillard/spark,liyichao/spark,publicRoman/spark,maropu/spark,Aegeaner/spark,LantaoJin/spark,saltstar/spark,big-pegasus/spark,holdenk/spark,metamx/spark,patrick-nicholson/spark,sahilTakiar/spark,sureshthalamati/spark,esi-mineset/spark,wangyum/spark,nchammas/spark,mdespriee/spark,xflin/spark,bravo-zhang/spark,taroplus/spark,ioana-delaney/spark,jrshust/spark,witgo/spark,sureshthalamati/spark,ibm-research-ireland/sparkoscope,jiangxb1987/spark,haowu80s/spark,guoxiaolongzte/spark,ConeyLiu/spark,ptkool/spark,akopich/spark,JerryLead/spark,highfei2011/spark,facaiy/spark,nchammas/spark,taroplus/spark,caneGuy/spark,stanzhai/spark,highfei2011/spark,shubhamchopra/spark,vinodkc/spark,gioenn/xSpark,bOOm-X/spark,aokolnychyi/spark,shubhamchopra/spark,kissmetrics/spark,dbtsai/spark,aosagie/spark,rezasafi/spark,guoxiaolongzte/spark,goldmedal/spark,ptkool/spark,sahilTakiar/spark,dbtsai/spark,ron8hu/spark,lvdongr/spark,dhruve/spark,bdrillard/spark,apache-spark-on-k8s/spark,JoshRosen/spark,BryanCutler/spark,michalsenkyr/spark,ahnqirage/spark,map222/spark,apache-spark-on-k8s/spark,zuotingbing/spark,zhouyejoe/spark,nchammas/spark,SHASHANKB/spark,spark-test/spark,mzl9039/spark,cloud-fan/spark,debugger87/spark,liyichao/spark,wzhfy/spark,srowen/spark,map222/spark,loneknightpy/spark,facaiy/spark,skonto/spark,mahak/spark,LantaoJin/spark,mdespriee/spark,gengliangwang/spark,loneknightpy/spark,mike0sv/spark,UndeadBaneGitHub/spark,minixalpha/spark,haowu80s/spark,liutang123/spark,apache-spark-on-k8s/spark,ericvandenbergfb/spark,shuangshuangwang/spark,haowu80s/spark,milliman/spark,liutang123/spark,yanboliang/spark,saturday-shi/spark,mzl9039/spark,markhamstra/spark,HyukjinKwon/spark,sachintyagi22/spark,zhouyejoe/spark,rednaxelafx/apache-spark,jlopezmalla/spark,jiangxb1987/spark,holdenk/spark,narahari92/spark,lvdongr/spark,mzl9039/spark,WindCanDie/spark,janewangfb/spark,ptkool/spark,1haodian/spark,rekhajoshm/spark,lxsmnv/spark,kiszk/spark,srowen/spark,markhamstra/spark,kevinyu98/spark,rikima/spark,jlopezmalla/spark,jkbradley/spark,brad-kaiser/spark,saturday-shi/spark,adrian-ionescu/apache-spark,jrshust/spark,UndeadBaneGitHub/spark,zero323/spark,chuckchen/spark,ibm-research-ireland/sparkoscope,Panos-Bletsos/spark-cost-model-optimizer,bOOm-X/spark,ueshin/apache-spark,big-pegasus/spark,goldmedal/spark,big-pegasus/spark,markhamstra/spark,xflin/spark,ddna1021/spark,sachintyagi22/spark,markhamstra/spark,maropu/spark,MLnick/spark,milliman/spark,kiszk/spark,ajaysaini725/spark,kimoonkim/spark,tejasapatil/spark,goldmedal/spark,rekhajoshm/spark,taroplus/spark,loneknightpy/spark,shaneknapp/spark,lvdongr/spark,shubhamchopra/spark,Panos-Bletsos/spark-cost-model-optimizer,shubhamchopra/spark,mdespriee/spark,hhbyyh/spark,huang1900/spark,ahnqirage/spark,tejasapatil/spark,someorz/spark,michalsenkyr/spark,bravo-zhang/spark,mahak/spark,sahilTakiar/spark,byakuinss/spark,bdrillard/spark,guoxiaolongzte/spark,szhem/spark,facaiy/spark,pgandhi999/spark,spark-test/spark,markhamstra/spark,adrian-ionescu/apache-spark,sureshthalamati/spark,poffuomo/spark,stanzhai/spark,lvdongr/spark,ahnqirage/spark,joseph-torres/spark,SnappyDataInc/spark,sachintyagi22/spark,pronix/spark,witgo/spark,srowen/spark,byakuinss/spark,shaneknapp/spark,map222/spark,techaddict/spark,tejasapatil/spark,cin/spark,hvanhovell/spark,JoshRosen/spark,poffuomo/spark,sachintyagi22/spark,michalsenkyr/spark,stanzhai/spark,rednaxelafx/apache-spark,kevinyu98/spark,ioana-delaney/spark,kiszk/spark,vinodkc/spark,zzcclp/spark,nchammas/spark,xflin/spark,chuckchen/spark,shuangshuangwang/spark,taroplus/spark,bOOm-X/spark,goldmedal/spark,brad-kaiser/spark,Aegeaner/spark,jianran/spark,kimoonkim/spark,setjet/spark,hhbyyh/spark,guoxiaolongzte/spark,michalsenkyr/spark,WeichenXu123/spark,kiszk/spark,lxsmnv/spark,mdespriee/spark,actuaryzhang/spark,tengpeng/spark,bdrillard/spark,shuangshuangwang/spark,alunarbeach/spark,lxsmnv/spark,cloud-fan/spark,cloud-fan/spark,patrick-nicholson/spark,alunarbeach/spark,rezasafi/spark,zzcclp/spark,ericvandenbergfb/spark,holdenk/spark,szhem/spark,narahari92/spark,cloud-fan/spark,kevinyu98/spark,poffuomo/spark,zero323/spark,ajaysaini725/spark,LantaoJin/spark,actuaryzhang/spark,srowen/spark,hvanhovell/spark,saturday-shi/spark,debugger87/spark,actuaryzhang/spark,pgandhi999/spark,byakuinss/spark,facaiy/spark,darionyaphet/spark,patrick-nicholson/spark,sureshthalamati/spark,ConeyLiu/spark,nilsgrabbert/spark,zhouyejoe/spark,SnappyDataInc/spark,minixalpha/spark,jkbradley/spark,setjet/spark,zzcclp/spark,ioana-delaney/spark,nchammas/spark,shubhamchopra/spark,mdespriee/spark,patrick-nicholson/spark,nchammas/spark,yanboliang/spark,aosagie/spark,rednaxelafx/apache-spark,skonto/spark,holdenk/spark,dongjoon-hyun/spark,skonto/spark,saturday-shi/spark,minixalpha/spark,WindCanDie/spark,andrewor14/spark,ahnqirage/spark,rednaxelafx/apache-spark,xflin/spark,jianran/spark,icexelloss/spark,bravo-zhang/spark,panfengfeng/spark,brad-kaiser/spark,jiangxb1987/spark,bdrillard/spark,liyichao/spark,andrewor14/spark,akopich/spark,maropu/spark,ddna1021/spark,HyukjinKwon/spark,publicRoman/spark,skonto/spark,akopich/spark,lxsmnv/spark,ddna1021/spark,hhbyyh/spark,icexelloss/spark,sachintyagi22/spark,xuanyuanking/spark,lvdongr/spark,techaddict/spark,andrewor14/spark,wangyum/spark,pronix/spark,adrian-ionescu/apache-spark,lxsmnv/spark,caneGuy/spark,esi-mineset/spark,michalsenkyr/spark,tengpeng/spark,JoshRosen/spark,wangyum/spark,saturday-shi/spark,nlalevee/spark,jlopezmalla/spark,saltstar/spark,ueshin/apache-spark,WindCanDie/spark,JoshRosen/spark,pgandhi999/spark,gioenn/xSpark,UndeadBaneGitHub/spark,someorz/spark,nlalevee/spark,wangmiao1981/spark,taroplus/spark,wzhfy/spark,mzl9039/spark,apache/spark,panfengfeng/spark,BryanCutler/spark,ibm-research-ireland/sparkoscope,Aegeaner/spark,wangmiao1981/spark,aokolnychyi/spark,mahak/spark,janewangfb/spark,WeichenXu123/spark,ioana-delaney/spark,rezasafi/spark,tejasapatil/spark,rekhajoshm/spark,sahilTakiar/spark,apache/spark,goldmedal/spark,aosagie/spark,kiszk/spark,rezasafi/spark,hvanhovell/spark,SnappyDataInc/spark,SnappyDataInc/spark,ajaysaini725/spark,zzcclp/spark,wzhfy/spark,metamx/spark,sureshthalamati/spark,haowu80s/spark,ericvandenbergfb/spark,LantaoJin/spark,actuaryzhang/spark,loneknightpy/spark,lxsmnv/spark,witgo/spark,dhruve/spark,cin/spark,guoxiaolongzte/spark,debugger87/spark,dhruve/spark,nilsgrabbert/spark,stanzhai/spark,esi-mineset/spark,stanzhai/spark,JoshRosen/spark,gioenn/xSpark,eyalfa/spark,kimoonkim/spark,guoxiaolongzte/spark,poffuomo/spark,mahak/spark,BryanCutler/spark,MLnick/spark,eyalfa/spark,kiszk/spark,ddna1021/spark,gioenn/xSpark,xflin/spark,xuanyuanking/spark,byakuinss/spark,jlopezmalla/spark,cin/spark,dongjoon-hyun/spark,mike0sv/spark,apache-spark-on-k8s/spark,jlopezmalla/spark,esi-mineset/spark,kimoonkim/spark,bOOm-X/spark,shuangshuangwang/spark,bravo-zhang/spark,mike0sv/spark,dbtsai/spark,Panos-Bletsos/spark-cost-model-optimizer,goldmedal/spark,rikima/spark,haowu80s/spark,alunarbeach/spark,vinodkc/spark,UndeadBaneGitHub/spark,pgandhi999/spark,wzhfy/spark,ron8hu/spark,bOOm-X/spark,MLnick/spark,saltstar/spark,ddna1021/spark,zzcclp/spark,metamx/spark,WeichenXu123/spark,brad-kaiser/spark,poffuomo/spark,icexelloss/spark,kissmetrics/spark,nlalevee/spark,skonto/spark,rekhajoshm/spark,metamx/spark,janewangfb/spark,zuotingbing/spark,sureshthalamati/spark,SHASHANKB/spark,milliman/spark,jrshust/spark,shaneknapp/spark,jiangxb1987/spark,jrshust/spark,loneknightpy/spark,alunarbeach/spark,dhruve/spark,chuckchen/spark,someorz/spark,liyichao/spark,ueshin/apache-spark,publicRoman/spark,nlalevee/spark,1haodian/spark,wangyum/spark,narahari92/spark,rikima/spark,brad-kaiser/spark,xuanyuanking/spark,WeichenXu123/spark,WindCanDie/spark,srowen/spark,publicRoman/spark,brad-kaiser/spark,zzcclp/spark,tengpeng/spark,techaddict/spark,ioana-delaney/spark,ioana-delaney/spark,gioenn/xSpark,nlalevee/spark,caneGuy/spark,nchammas/spark,ajaysaini725/spark,joseph-torres/spark,caneGuy/spark,map222/spark,jiangxb1987/spark,liutang123/spark,spark-test/spark,xuanyuanking/spark,byakuinss/spark,maropu/spark,alunarbeach/spark,joseph-torres/spark,MLnick/spark,saltstar/spark,ConeyLiu/spark,someorz/spark,ericvandenbergfb/spark,publicRoman/spark,MLnick/spark,srowen/spark,kevinyu98/spark,rezasafi/spark,narahari92/spark,saltstar/spark,map222/spark,MLnick/spark,bOOm-X/spark,ron8hu/spark,big-pegasus/spark,ericvandenbergfb/spark,dbtsai/spark,hvanhovell/spark,nilsgrabbert/spark,byakuinss/spark,icexelloss/spark,rekhajoshm/spark,vinodkc/spark,tengpeng/spark,SHASHANKB/spark,wangmiao1981/spark,loneknightpy/spark,ajaysaini725/spark,facaiy/spark,big-pegasus/spark,setjet/spark,setjet/spark,gengliangwang/spark,someorz/spark,cin/spark,zuotingbing/spark,zuotingbing/spark,jlopezmalla/spark,BryanCutler/spark,apache/spark,zhouyejoe/spark,adrian-ionescu/apache-spark,wangyum/spark,zhouyejoe/spark,debugger87/spark,tengpeng/spark,sachintyagi22/spark,mahak/spark,dhruve/spark,liutang123/spark,zzcclp/spark,aokolnychyi/spark,icexelloss/spark,dongjoon-hyun/spark,metamx/spark,adrian-ionescu/apache-spark,goldmedal/spark,zhouyejoe/spark,witgo/spark,ron8hu/spark,facaiy/spark,SnappyDataInc/spark,panfengfeng/spark,andrewor14/spark,ptkool/spark,actuaryzhang/spark,pronix/spark,LantaoJin/spark,mdespriee/spark,dongjoon-hyun/spark,zero323/spark,sahilTakiar/spark,Panos-Bletsos/spark-cost-model-optimizer,ConeyLiu/spark,yanboliang/spark,pgandhi999/spark,witgo/spark,hvanhovell/spark,jkbradley/spark,huang1900/spark,apache/spark,michalsenkyr/spark,liutang123/spark,xflin/spark,dongjoon-hyun/spark,rikima/spark,eyalfa/spark,wzhfy/spark,rednaxelafx/apache-spark,yanboliang/spark,witgo/spark,alunarbeach/spark,MLnick/spark,pronix/spark,publicRoman/spark,bravo-zhang/spark,xuanyuanking/spark,tengpeng/spark,setjet/spark,joseph-torres/spark,cin/spark,wangmiao1981/spark,darionyaphet/spark,wzhfy/spark,eyalfa/spark,holdenk/spark,andrewor14/spark,someorz/spark,stanzhai/spark,aray/spark,mdespriee/spark,milliman/spark,rikima/spark,mike0sv/spark,Aegeaner/spark,vinodkc/spark,apache/spark,wzhfy/spark,tejasapatil/spark,bOOm-X/spark,guoxiaolongzte/spark,Aegeaner/spark,HyukjinKwon/spark,jianran/spark,JerryLead/spark,narahari92/spark,1haodian/spark,pronix/spark,aray/spark,sureshthalamati/spark,spark-test/spark,jrshust/spark,dhruve/spark,gengliangwang/spark,debugger87/spark,esi-mineset/spark,wangyum/spark,skonto/spark,spark-test/spark,big-pegasus/spark,jrshust/spark,jkbradley/spark,bdrillard/spark,jlopezmalla/spark,huang1900/spark,HyukjinKwon/spark,BryanCutler/spark,loneknightpy/spark,eyalfa/spark,markhamstra/spark,poffuomo/spark,szhem/spark,dongjoon-hyun/spark,jkbradley/spark,akopich/spark,cloud-fan/spark,patrick-nicholson/spark,SHASHANKB/spark,ConeyLiu/spark,andrewor14/spark,aosagie/spark,ibm-research-ireland/sparkoscope,zero323/spark,techaddict/spark,sachintyagi22/spark,rednaxelafx/apache-spark,ibm-research-ireland/sparkoscope,JoshRosen/spark,mzl9039/spark,nilsgrabbert/spark,WeichenXu123/spark,zuotingbing/spark,gengliangwang/spark,jianran/spark,Panos-Bletsos/spark-cost-model-optimizer,joseph-torres/spark,SHASHANKB/spark,rekhajoshm/spark,aosagie/spark,darionyaphet/spark,aokolnychyi/spark,wangyum/spark,akopich/spark,nlalevee/spark,gioenn/xSpark,huang1900/spark,SnappyDataInc/spark,janewangfb/spark,sahilTakiar/spark,yanboliang/spark,ibm-research-ireland/sparkoscope,WindCanDie/spark,zuotingbing/spark,JerryLead/spark,wangmiao1981/spark,shaneknapp/spark,BryanCutler/spark,ConeyLiu/spark,stanzhai/spark,patrick-nicholson/spark,minixalpha/spark,hvanhovell/spark,nilsgrabbert/spark,maropu/spark,joseph-torres/spark,gengliangwang/spark,bdrillard/spark,rikima/spark,Panos-Bletsos/spark-cost-model-optimizer,eyalfa/spark,ahnqirage/spark,michalsenkyr/spark,techaddict/spark,kevinyu98/spark,taroplus/spark,xuanyuanking/spark,liyichao/spark,darionyaphet/spark,JoshRosen/spark,huang1900/spark,BryanCutler/spark,saturday-shi/spark,kevinyu98/spark,holdenk/spark,mzl9039/spark,techaddict/spark,pronix/spark,zhouyejoe/spark,kiszk/spark,alunarbeach/spark,LantaoJin/spark,yanboliang/spark,ueshin/apache-spark,kissmetrics/spark,ueshin/apache-spark,spark-test/spark,highfei2011/spark,1haodian/spark,metamx/spark,kissmetrics/spark,skonto/spark,JerryLead/spark,aray/spark,nilsgrabbert/spark,cin/spark