Re: RE: spark sql hook

2015-09-16 Thread r7raul1...@163.com
Example: select * from test.table chang to select * from production.table r7raul1...@163.com From: Cheng, Hao Date: 2015-09-17 11:05 To: r7raul1...@163.com; user Subject: RE: spark sql hook Catalyst TreeNode is very fundamental API, not sure what kind of hook you need. Any concrete

RE: RE: spark sql hook

2015-09-16 Thread Cheng, Hao
: RE: spark sql hook Example: select * from test.table chang to select * from production.table r7raul1...@163.com<mailto:r7raul1...@163.com> From: Cheng, Hao<mailto:hao.ch...@intel.com> Date: 2015-09-17 11:05 To: r7raul1...@163.com<mailto:r7r

Re: RE: spark sql hook

2015-09-16 Thread r7raul1...@163.com
Thank you r7raul1...@163.com From: Cheng, Hao Date: 2015-09-17 12:32 To: r7raul1...@163.com; user Subject: RE: RE: spark sql hook Probably a workable solution is, create your own SQLContext by extending the class HiveContext, and override the `analyzer`, and add your own rule to do