Re: Defining case class within main method throws "No TypeTag available for Accounts"

2016-04-25 Thread Mich Talebzadeh
BTW is this documented as it seems to be potential issue. Dr Mich Talebzadeh LinkedIn * https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw * http://talebzadehmich.wordpress.com

Re: Defining case class within main method throws "No TypeTag available for Accounts"

2016-04-25 Thread Mich Talebzadeh
cheers Dr Mich Talebzadeh LinkedIn * https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw * http://talebzadehmich.wordpress.com On 25 April 2016 at 18:35, Michael Armbrust wrote

Re: Defining case class within main method throws "No TypeTag available for Accounts"

2016-04-25 Thread Ashok Kumar
Thanks Michael as I gathered for now it is a feature. On Monday, 25 April 2016, 18:36, Michael Armbrust wrote: When you define a class inside of a method, it implicitly has a pointer to the outer scope of the method.  Spark doesn't have access to this scope, so this makes it hard (imp

Re: Defining case class within main method throws "No TypeTag available for Accounts"

2016-04-25 Thread Michael Armbrust
When you define a class inside of a method, it implicitly has a pointer to the outer scope of the method. Spark doesn't have access to this scope, so this makes it hard (impossible?) for us to construct new instances of that class. So, define your classes that you plan to use with Spark at the to

Defining case class within main method throws "No TypeTag available for Accounts"

2016-04-25 Thread Mich Talebzadeh
Hi, I notice buiding with sbt if I define my case class *outside of main method* like below it works case class Accounts( TransactionDate: String, TransactionType: String, Description: String, Value: Double, Balance: Double, AccountName: String, AccountNumber : String) object Import_nw_10124772