<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filling a STRUCT field with a PreparedStatement in JDBC in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134419#M50129</link>
    <description>&lt;P&gt;Of course . The JSON looks like&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;{&lt;BR /&gt;  &lt;SPAN&gt;"age" &lt;/SPAN&gt;: &lt;SPAN&gt;18&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;"name" &lt;/SPAN&gt;: &lt;SPAN&gt;"Erquy"&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;and I'm using the setString method of a java.sql.PreparedStatement&lt;/P&gt;&lt;P&gt;( for a table defined with&amp;nbsp;STRUCT&amp;lt;age: INT, name: STRING&amp;gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2025 15:17:06 GMT</pubDate>
    <dc:creator>EricCournarie</dc:creator>
    <dc:date>2025-10-09T15:17:06Z</dc:date>
    <item>
      <title>Filling a STRUCT field with a PreparedStatement in JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134415#M50127</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to fill a STRUCT field with a PreparedStatement in Java by giving a JSON string in the PreparedStatement.&lt;/P&gt;&lt;P&gt;But it complains&amp;nbsp;&lt;/P&gt;&lt;H5&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Cannot resolve "infos" due to data type mismatch: cannot cast "STRING" to "STRUCT&amp;lt;AGE: BIGINT, NAME: STRING&amp;gt;".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H5&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;it works with ARRAY, but not with STRUCT&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Did I miss something, or should it be done in another way ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 14:44:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134415#M50127</guid>
      <dc:creator>EricCournarie</dc:creator>
      <dc:date>2025-10-09T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filling a STRUCT field with a PreparedStatement in JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134416#M50128</link>
      <description>&lt;P&gt;Could you provide a sample of JSON string along with a code you're using? Otherwise it will be hard for us to help you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 15:03:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134416#M50128</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-09T15:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filling a STRUCT field with a PreparedStatement in JDBC</title>
      <link>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134419#M50129</link>
      <description>&lt;P&gt;Of course . The JSON looks like&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;{&lt;BR /&gt;  &lt;SPAN&gt;"age" &lt;/SPAN&gt;: &lt;SPAN&gt;18&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;"name" &lt;/SPAN&gt;: &lt;SPAN&gt;"Erquy"&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;and I'm using the setString method of a java.sql.PreparedStatement&lt;/P&gt;&lt;P&gt;( for a table defined with&amp;nbsp;STRUCT&amp;lt;age: INT, name: STRING&amp;gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 15:17:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filling-a-struct-field-with-a-preparedstatement-in-jdbc/m-p/134419#M50129</guid>
      <dc:creator>EricCournarie</dc:creator>
      <dc:date>2025-10-09T15:17:06Z</dc:date>
    </item>
  </channel>
</rss>

