As described here <http://spark.apache.org/docs/latest/sql-programming-guide.html#jdbc-to-other-databases>, you can use the DataSource API to connect to an external database using JDBC. While the dbtable option is usually just a table name, it can also be any valid SQL command that returns a table when enclosed in (parentheses). I'm not certain, but I'd expect you could use this feature to invoke a stored procedure and return the results as a DataFrame.
On Sat, Aug 13, 2016 at 10:40 AM, sujeet jog <sujeet....@gmail.com> wrote: > Hi, > > Is there a way to call a stored procedure using spark ? > > > thanks, > Sujeet >