Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Interesting. I'll work on it and come back to you to validate the anwser if all is ok :) Thx! Commented Mar 8, 2016 at 14:44
  • @zero323 Should the character after tmp be ' instead? The Scala example works with sqlContext.read.jdbc("jdbc:sqlserver://example.com;databaseName=local;user=debug;password=debug", "(SELECT TOP 5 * FROM ExampleTable) tmp", new java.util.Properties) Commented Apr 14, 2016 at 9:30
  • @RăzvanPanda Yes, it should. Fixed, thanks Options work in Scala as well. Commented Apr 14, 2016 at 9:47
  • @zero323 It seems that using a filter is not translated to the database specific SQL either :( Commented Apr 14, 2016 at 9:55
  • 1
    @RăzvanPanda All depends on a type of a filter. See for example stackoverflow.com/a/32585936/1560062 Is it what you mean? is limited to the logical conjunction - in particular. Commented Apr 14, 2016 at 10:09