[SPARK-19239][PYSPARK] Check parameters whether equals None when specify the column in jdbc API
[SPARK-19239][PYSPARK] Check parameters whether equals None when specify the column in jdbc API

## What changes were proposed in this pull request?

The `jdbc` API do not check the `lowerBound` and `upperBound` when we
specified the ``column``, and just throw the following exception:

>```int() argument must be a string or a number, not 'NoneType'```

If we check the parameter, we can give a more friendly suggestion.

## How was this patch tested?
Test using the pyspark shell, without the lowerBound and upperBound parameters.

Author: DjvuLee <lihu@bytedance.com>

Closes #16599 from djvulee/pysparkFix.

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