[SPARK-25461][PYSPARK][SQL] Add document for mismatch between return type of Pandas.Series and return type of pandas udf
[SPARK-25461][PYSPARK][SQL] Add document for mismatch between return type of Pandas.Series and return type of pandas udf

## What changes were proposed in this pull request?

For Pandas UDFs, we get arrow type from defined Catalyst return data type of UDFs. We use this arrow type to do serialization of data. If the defined return data type doesn't match with actual return type of Pandas.Series returned by Pandas UDFs, it has a risk to return incorrect data from Python side.

Currently we don't have reliable approach to check if the data conversion is safe or not. We leave some document to notify this to users for now. When there is next upgrade of PyArrow available we can use to check it, we should add the option to check it.

## How was this patch tested?

Only document change.

Closes #22610 from viirya/SPARK-25461.

Authored-by: Liang-Chi Hsieh <d24118b4297e1ecf0c990d6935f5f9e6e4fd7701@gmail.com>
Signed-off-by: hyukjinkwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

yanboliang/spark,actuaryzhang/spark,techaddict/spark,hhbyyh/spark,WeichenXu123/spark,hvanhovell/spark,gengliangwang/spark,nchammas/spark,LantaoJin/spark,ptkool/spark,JoshRosen/spark,dbtsai/spark,taroplus/spark,maropu/spark,icexelloss/spark,rednaxelafx/apache-spark,dongjoon-hyun/spark,wangyum/spark,zzcclp/spark,rednaxelafx/apache-spark,gengliangwang/spark,jiangxb1987/spark,milliman/spark,skonto/spark,darionyaphet/spark,skonto/spark,spark-test/spark,wzhfy/spark,Aegeaner/spark,icexelloss/spark,ueshin/apache-spark,WeichenXu123/spark,shuangshuangwang/spark,yanboliang/spark,wangyum/spark,caneGuy/spark,mahak/spark,shaneknapp/spark,dongjoon-hyun/spark,hvanhovell/spark,LantaoJin/spark,bdrillard/spark,gengliangwang/spark,bdrillard/spark,shaneknapp/spark,icexelloss/spark,bdrillard/spark,hhbyyh/spark,zero323/spark,ptkool/spark,hvanhovell/spark,zuotingbing/spark,HyukjinKwon/spark,ConeyLiu/spark,Aegeaner/spark,kiszk/spark,ueshin/apache-spark,shuangshuangwang/spark,icexelloss/spark,goldmedal/spark,highfei2011/spark,HyukjinKwon/spark,JoshRosen/spark,holdenk/spark,mdespriee/spark,ahnqirage/spark,witgo/spark,darionyaphet/spark,hvanhovell/spark,vinodkc/spark,ahnqirage/spark,shaneknapp/spark,dongjoon-hyun/spark,zzcclp/spark,BryanCutler/spark,dongjoon-hyun/spark,apache/spark,aosagie/spark,facaiy/spark,aosagie/spark,pgandhi999/spark,ConeyLiu/spark,techaddict/spark,guoxiaolongzte/spark,jiangxb1987/spark,dbtsai/spark,WindCanDie/spark,wzhfy/spark,HyukjinKwon/spark,techaddict/spark,cloud-fan/spark,yanboliang/spark,nchammas/spark,JoshRosen/spark,highfei2011/spark,srowen/spark,guoxiaolongzte/spark,srowen/spark,taroplus/spark,wangmiao1981/spark,taroplus/spark,kevinyu98/spark,wangmiao1981/spark,kevinyu98/spark,techaddict/spark,darionyaphet/spark,guoxiaolongzte/spark,mahak/spark,shuangshuangwang/spark,spark-test/spark,shuangshuangwang/spark,shaneknapp/spark,spark-test/spark,pgandhi999/spark,kevinyu98/spark,milliman/spark,milliman/spark,ptkool/spark,JoshRosen/spark,vinodkc/spark,xuanyuanking/spark,aosagie/spark,actuaryzhang/spark,chuckchen/spark,mahak/spark,mahak/spark,zuotingbing/spark,zero323/spark,witgo/spark,guoxiaolongzte/spark,jkbradley/spark,ueshin/apache-spark,WindCanDie/spark,highfei2011/spark,skonto/spark,kevinyu98/spark,wangyum/spark,aosagie/spark,darionyaphet/spark,taroplus/spark,dongjoon-hyun/spark,BryanCutler/spark,skonto/spark,ConeyLiu/spark,jkbradley/spark,rednaxelafx/apache-spark,BryanCutler/spark,xuanyuanking/spark,LantaoJin/spark,mahak/spark,caneGuy/spark,gengliangwang/spark,ConeyLiu/spark,shuangshuangwang/spark,wangmiao1981/spark,maropu/spark,kiszk/spark,wzhfy/spark,bdrillard/spark,skonto/spark,skonto/spark,rezasafi/spark,shuangshuangwang/spark,rezasafi/spark,kiszk/spark,aosagie/spark,techaddict/spark,hvanhovell/spark,goldmedal/spark,vinodkc/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,rezasafi/spark,nchammas/spark,shaneknapp/spark,srowen/spark,WindCanDie/spark,jiangxb1987/spark,wangyum/spark,zzcclp/spark,jiangxb1987/spark,rezasafi/spark,maropu/spark,jkbradley/spark,LantaoJin/spark,wangmiao1981/spark,highfei2011/spark,srowen/spark,mdespriee/spark,ptkool/spark,yanboliang/spark,holdenk/spark,pgandhi999/spark,holdenk/spark,goldmedal/spark,techaddict/spark,Aegeaner/spark,kiszk/spark,ueshin/apache-spark,holdenk/spark,actuaryzhang/spark,caneGuy/spark,maropu/spark,goldmedal/spark,mdespriee/spark,caneGuy/spark,dbtsai/spark,bdrillard/spark,guoxiaolongzte/spark,xuanyuanking/spark,mahak/spark,chuckchen/spark,rezasafi/spark,vinodkc/spark,jiangxb1987/spark,wangyum/spark,LantaoJin/spark,dongjoon-hyun/spark,icexelloss/spark,apache/spark,gengliangwang/spark,WindCanDie/spark,skonto/spark,WeichenXu123/spark,apache/spark,aosagie/spark,facaiy/spark,wangyum/spark,zuotingbing/spark,xuanyuanking/spark,highfei2011/spark,ueshin/apache-spark,gengliangwang/spark,ueshin/apache-spark,wzhfy/spark,facaiy/spark,srowen/spark,HyukjinKwon/spark,jiangxb1987/spark,yanboliang/spark,caneGuy/spark,ptkool/spark,rednaxelafx/apache-spark,zzcclp/spark,nchammas/spark,witgo/spark,taroplus/spark,spark-test/spark,spark-test/spark,facaiy/spark,BryanCutler/spark,hhbyyh/spark,WeichenXu123/spark,zuotingbing/spark,witgo/spark,Aegeaner/spark,LantaoJin/spark,hhbyyh/spark,maropu/spark,ahnqirage/spark,xuanyuanking/spark,zero323/spark,nchammas/spark,holdenk/spark,pgandhi999/spark,zuotingbing/spark,BryanCutler/spark,cloud-fan/spark,caneGuy/spark,Aegeaner/spark,facaiy/spark,zero323/spark,JoshRosen/spark,zuotingbing/spark,BryanCutler/spark,apache/spark,kevinyu98/spark,facaiy/spark,hhbyyh/spark,pgandhi999/spark,rednaxelafx/apache-spark,aosagie/spark,JoshRosen/spark,zuotingbing/spark,cloud-fan/spark,witgo/spark,actuaryzhang/spark,Aegeaner/spark,hvanhovell/spark,kiszk/spark,actuaryzhang/spark,wangyum/spark,cloud-fan/spark,spark-test/spark,ConeyLiu/spark,zzcclp/spark,apache/spark,jkbradley/spark,rezasafi/spark,wzhfy/spark,taroplus/spark,WeichenXu123/spark,holdenk/spark,zzcclp/spark,highfei2011/spark,cloud-fan/spark,milliman/spark,bdrillard/spark,goldmedal/spark,WindCanDie/spark,ptkool/spark,milliman/spark,icexelloss/spark,HyukjinKwon/spark,gengliangwang/spark,nchammas/spark,ConeyLiu/spark,cloud-fan/spark,holdenk/spark,xuanyuanking/spark,matthewfranglen/spark,srowen/spark,jkbradley/spark,chuckchen/spark,ConeyLiu/spark,JoshRosen/spark,WindCanDie/spark,kevinyu98/spark,yanboliang/spark,guoxiaolongzte/spark,nchammas/spark,goldmedal/spark,LantaoJin/spark,rezasafi/spark,actuaryzhang/spark,dbtsai/spark,taroplus/spark,apache/spark,kevinyu98/spark,icexelloss/spark,apache/spark,rednaxelafx/apache-spark,srowen/spark,mdespriee/spark,dbtsai/spark,dbtsai/spark,hhbyyh/spark,highfei2011/spark,yanboliang/spark,xuanyuanking/spark,wzhfy/spark,mahak/spark,zzcclp/spark,mdespriee/spark,pgandhi999/spark,actuaryzhang/spark,HyukjinKwon/spark,cloud-fan/spark,shuangshuangwang/spark,ahnqirage/spark,wzhfy/spark,ahnqirage/spark,ptkool/spark,chuckchen/spark,shaneknapp/spark,chuckchen/spark,jkbradley/spark,wangmiao1981/spark,wangmiao1981/spark,dbtsai/spark,witgo/spark,vinodkc/spark,wangmiao1981/spark,hvanhovell/spark,WindCanDie/spark,maropu/spark,maropu/spark,jiangxb1987/spark,techaddict/spark,mdespriee/spark,ahnqirage/spark,darionyaphet/spark,zero323/spark,WeichenXu123/spark,hhbyyh/spark,WeichenXu123/spark,guoxiaolongzte/spark,vinodkc/spark,chuckchen/spark,goldmedal/spark,shaneknapp/spark,ueshin/apache-spark,kiszk/spark,spark-test/spark,HyukjinKwon/spark,chuckchen/spark,ahnqirage/spark,vinodkc/spark,milliman/spark,BryanCutler/spark,caneGuy/spark,milliman/spark,zero323/spark,darionyaphet/spark,darionyaphet/spark,facaiy/spark,zero323/spark,pgandhi999/spark,kiszk/spark,jkbradley/spark,bdrillard/spark,Aegeaner/spark,mdespriee/spark,witgo/spark