Eran Medan

United States

linkedin.com/in/eranmedan

Age: 37

Tech Lead at NICE Actimize

  • Java, Scala, JavaScript, and all that is web
  • Data mining and fraud detection
1d
asked What is the right way to represent an "Any" type in Spark SQL?
1d
asked What is the right Date/Datetime format in JSON for Spark SQL to automatically infer the schema for it?
2d
awarded Famous Question
Mar
25
awarded Good Answer
Mar
25
revised Is this a regression bug in Spark 1.3?
deleted 10 characters in body
Mar
24
accepted Is this a regression bug in Spark 1.3?
Mar
24
comment Is this a regression bug in Spark 1.3?
Thanks! I guess I should have read the manual first ;) spark.apache.org/docs/1.3.0/…
Mar
24
asked Is this a regression bug in Spark 1.3?
Mar
12
revised How do I know if a type is a "Number" in runtime (without type classes)
added 244 characters in body
Mar
12
comment How do I know if a type is a "Number" in runtime (without type classes)
@Lee you are a genious. Is it because in runtime like a Java boxed type which all implements Number?. Is that the magic that is happening here?
Mar
12
comment How do I know if a type is a "Number" in runtime (without type classes)
@kaktusito - well, pretty much anything that implements the basic arithmetic methods... Very, very close to Numeric
Mar
12
asked How do I know if a type is a "Number" in runtime (without type classes)
Mar
12
accepted Can this be done with Scala macros?
Mar
11
awarded Notable Question
Mar
11
awarded Popular Question
Mar
11
comment Can this be done with Scala macros?
@sschaef - I tried, it seems it wants the identifier to be valid first before expanding the macro, I wish I could tell scala to first expand the macro and only then try to figure out what is that identifier (e.g. foo). p.s. even without macros, dynamic calls only work with an explicit dot sadly. e.g. just writing this in the REPL (without any macro): x = new Item(..); import x._ ; blah doesn't work, you have to explicitly use . on x: x = new Item(..); x.blah
Mar
11
comment Can this be done with Scala macros?
Ok, one direction is via symbols... and since 2.11 you can use by name parameters to macros. So it might be doable but not sure if worth the effort :)
Mar
11
comment Can this be done with Scala macros?
Hm... I don't think it's possible, I need to match an unknown structure that can be recursive (is there a way to match an "arbitrary boolean expression that can't really compile?")
Mar
11
comment Can this be done with Scala macros?
Ok, I'll try to dig in. Is there a good up to date resource on macros I can use?
Mar
11
asked Can this be done with Scala macros?
1 2 3 4 5