title: Spark with Postgres SQL fetches only the column names and not the values
body: <p>I have a table like this.</p>
  <pre><code>ID   Name
  ---------
  1   &quot;Dummy&quot;
  1   &quot;Dummy&quot;
  </code></pre>
  <p>When I use the following Java code to fetch the 2 entries, it is printing only the ID and Name and not it's values.</p>
  <pre><code>Dataset&lt;Row&gt; row = sparkSession.read().format(&quot;jdbc&quot;)
                  .option(&quot;url&quot;, &quot;jdbc:postgresql://localhost:5432/postgres&quot;).option(&quot;user&quot;, &quot;postgres&quot;).option(&quot;password&quot;,&quot;pass@1&quot;)
                  .option(&quot;dbtable&quot;, &quot;public.\&quot;Employee\&quot;&quot;) 
                  .option(&quot;query&quot;, &quot;select * from public.\&quot;Employee\&quot;&quot;)
                  .option(&quot;fetchsize&quot;, &quot;10&quot;)
                  .load();
  </code></pre>