<?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: Created nested struct schema SPARK - Schema Jira in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28380#M1577</link>
    <description>&lt;P&gt;@Werner Stinckens​&amp;nbsp;or @Hubert Dudek​&amp;nbsp;Could you help me?&lt;/P&gt;&lt;P&gt;I don't want all the information, just some. However, I can only do it in a static file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2022 13:39:12 GMT</pubDate>
    <dc:creator>weldermartins</dc:creator>
    <dc:date>2022-10-08T13:39:12Z</dc:date>
    <item>
      <title>Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28379#M1576</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm using Jira API to return "ISSUES".  But to be able to use pyspark I need to create the Dataframe passing in the Schema. But I am not able to create the Schema based on the model below. Would you have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;root
 |-- expand: string (nullable = true)
 |-- fields: struct (nullable = true)
 |    |-- aggregateprogress: struct (nullable = true)
 |    |    |-- progress: long (nullable = true)
 |    |    |-- total: long (nullable = true)
 |    |-- aggregatetimeestimate: string (nullable = true)
 |    |-- aggregatetimeoriginalestimate: string (nullable = true)
 |    |-- aggregatetimespent: string (nullable = true)
 |    |-- assignee: string (nullable = true)
 |    |-- attachment: array (nullable = true)
 |    |    |-- element: string (containsNull = true)
 |    |-- comment: struct (nullable = true)
 |    |    |-- comments: array (nullable = true)
 |    |    |    |-- element: struct (containsNull = true)
 |    |    |    |    |-- author: struct (nullable = true)
 |    |    |    |    |    |-- accountId: string (nullable = true)
 |    |    |    |    |    |-- accountType: string (nullable = true)
 |    |    |    |    |    |-- active: boolean (nullable = true)
 |    |    |    |    |    |-- avatarUrls: struct (nullable = true)
 |    |    |    |    |    |    |-- 16x16: string (nullable = true)
 |    |    |    |    |    |    |-- 24x24: string (nullable = true)
 |    |    |    |    |    |    |-- 32x32: string (nullable = true)
 |    |    |    |    |    |    |-- 48x48: string (nullable = true)
 |    |    |    |    |    |-- displayName: string (nullable = true)
 |    |    |    |    |    |-- emailAddress: string (nullable = true)
 |    |    |    |    |    |-- self: string (nullable = true)
 |    |    |    |    |    |-- timeZone: string (nullable = true)
 |    |    |    |    |-- body: struct (nullable = true)
 |    |    |    |    |    |-- content: array (nullable = true)
 |    |    |    |    |    |    |-- element: struct (containsNull = true)
 |    |    |    |    |    |    |    |-- content: array (nullable = true)
 |    |    |    |    |    |    |    |    |-- element: struct (containsNull = true)
 |    |    |    |    |    |    |    |    |    |-- text: string (nullable = true)
 |    |    |    |    |    |    |    |    |    |-- type: string (nullable = true)
 |    |    |    |    |    |    |    |-- type: string (nullable = true)
 |    |    |    |    |    |-- type: string (nullable = true)
 |    |    |    |    |    |-- version: long (nullable = true)
 |    |    |    |    |-- created: string (nullable = true)
 |    |    |    |    |-- id: string (nullable = true)
 |    |    |    |    |-- jsdPublic: boolean (nullable = true)
 |    |    |    |    |-- self: string (nullable = true)
 |    |    |    |    |-- updateAuthor: struct (nullable = true)
 |    |    |    |    |    |-- accountId: string (nullable = true)
 |    |    |    |    |    |-- accountType: string (nullable = true)
 |    |    |    |    |    |-- active: boolean (nullable = true)
 |    |    |    |    |    |-- avatarUrls: struct (nullable = true)
 |    |    |    |    |    |    |-- 16x16: string (nullable = true)
 |    |    |    |    |    |    |-- 24x24: string (nullable = true)
 |    |    |    |    |    |    |-- 32x32: string (nullable = true)
 |    |    |    |    |    |    |-- 48x48: string (nullable = true)
 |    |    |    |    |    |-- displayName: string (nullable = true)
 |    |    |    |    |    |-- emailAddress: string (nullable = true)
 |    |    |    |    |    |-- self: string (nullable = true)
 |    |    |    |    |    |-- timeZone: string (nullable = true)
 |    |    |    |    |-- updated: string (nullable = true)
 |    |    |-- maxResults: long (nullable = true)
 |    |    |-- self: string (nullable = true)
 |    |    |-- startAt: long (nullable = true)
 |    |    |-- total: long (nullable = true)
 |    |-- components: array (nullable = true)
 |    |    |-- element: string (containsNull = true)
 |    |-- created: string (nullable = true)
 |    |-- creator: struct (nullable = true)
 |    |    |-- accountId: string (nullable = true)
 |    |    |-- accountType: string (nullable = true)
 |    |    |-- active: boolean (nullable = true)
 |    |    |-- avatarUrls: struct (nullable = true)
 |    |    |    |-- 16x16: string (nullable = true)
 |    |    |    |-- 24x24: string (nullable = true)
 |    |    |    |-- 32x32: string (nullable = true)
 |    |    |    |-- 48x48: string (nullable = true)
 |    |    |-- displayName: string (nullable = true)
 |    |    |-- emailAddress: string (nullable = true)
 |    |    |-- self: string (nullable = true)
 |    |    |-- timeZone: string (nullable = true)
 |    |-- customfield_10001: string (nullable = true)
 |    |-- customfield_10002: string (nullable = true)
 |    |-- customfield_10003: string (nullable = true)
 |    |-- customfield_10004: string (nullable = true)
 |    |-- customfield_10005: string (nullable = true)
 |    |-- customfield_10006: string (nullable = true)
 |    |-- customfield_10007: string (nullable = true)
 |    |-- customfield_10008: string (nullable = true)
 |    |-- customfield_10009: string (nullable = true)
 |    |-- customfield_10010: string (nullable = true)
 |    |-- customfield_10014: string (nullable = true)
 |    |-- customfield_10015: string (nullable = true)
 |    |-- customfield_10016: string (nullable = true)
 |    |-- customfield_10017: string (nullable = true)
 |    |-- customfield_10018: struct (nullable = true)
 |    |    |-- hasEpicLinkFieldDependency: boolean (nullable = true)
 |    |    |-- nonEditableReason: struct (nullable = true)
 |    |    |    |-- message: string (nullable = true)
 |    |    |    |-- reason: string (nullable = true)
 |    |    |-- showField: boolean (nullable = true)
 |    |-- customfield_10019: string (nullable = true)
 |    |-- customfield_10020: string (nullable = true)
 |    |-- customfield_10021: string (nullable = true)
 |    |-- customfield_10022: string (nullable = true)
 |    |-- customfield_10023: string (nullable = true)
 |    |-- customfield_10024: string (nullable = true)
 |    |-- customfield_10025: string (nullable = true)
 |    |-- customfield_10026: string (nullable = true)
 |    |-- customfield_10027: string (nullable = true)
 |    |-- customfield_10028: string (nullable = true)
 |    |-- customfield_10029: string (nullable = true)
 |    |-- customfield_10030: string (nullable = true)
 |    |-- description: string (nullable = true)
 |    |-- duedate: string (nullable = true)
 |    |-- environment: string (nullable = true)
 |    |-- fixVersions: array (nullable = true)
 |    |    |-- element: string (containsNull = true)
 |    |-- issuelinks: array (nullable = true)
 |    |    |-- element: string (containsNull = true)
 |    |-- issuerestriction: struct (nullable = true)
 |    |    |-- shouldDisplay: boolean (nullable = true)
 |    |-- issuetype: struct (nullable = true)
 |    |    |-- avatarId: long (nullable = true)
 |    |    |-- description: string (nullable = true)
 |    |    |-- entityId: string (nullable = true)
 |    |    |-- hierarchyLevel: long (nullable = true)
 |    |    |-- iconUrl: string (nullable = true)
 |    |    |-- id: string (nullable = true)
 |    |    |-- name: string (nullable = true)
 |    |    |-- self: string (nullable = true)
 |    |    |-- subtask: boolean (nullable = true)
 |    |-- labels: array (nullable = true)
 |    |    |-- element: string (containsNull = true)
 |    |-- lastViewed: string (nullable = true)
 |    |-- priority: struct (nullable = true)
 |    |    |-- iconUrl: string (nullable = true)
 |    |    |-- id: string (nullable = true)
 |    |    |-- name: string (nullable = true)
 |    |    |-- self: string (nullable = true)
 |    |-- progress: struct (nullable = true)
 |    |    |-- progress: long (nullable = true)
 |    |    |-- total: long (nullable = true)
 |    |-- project: struct (nullable = true)
 |    |    |-- avatarUrls: struct (nullable = true)
 |    |    |    |-- 16x16: string (nullable = true)
 |    |    |    |-- 24x24: string (nullable = true)
 |    |    |    |-- 32x32: string (nullable = true)
 |    |    |    |-- 48x48: string (nullable = true)
 |    |    |-- id: string (nullable = true)
 |    |    |-- key: string (nullable = true)
 |    |    |-- name: string (nullable = true)
 |    |    |-- projectTypeKey: string (nullable = true)
 |    |    |-- self: string (nullable = true)
 |    |    |-- simplified: boolean (nullable = true)
 |    |-- reporter: struct (nullable = true)
 |    |    |-- accountId: string (nullable = true)
 |    |    |-- accountType: string (nullable = true)
 |    |    |-- active: boolean (nullable = true)
 |    |    |-- avatarUrls: struct (nullable = true)
 |    |    |    |-- 16x16: string (nullable = true)
 |    |    |    |-- 24x24: string (nullable = true)
 |    |    |    |-- 32x32: string (nullable = true)
 |    |    |    |-- 48x48: string (nullable = true)
 |    |    |-- displayName: string (nullable = true)
 |    |    |-- emailAddress: string (nullable = true)
 |    |    |-- self: string (nullable = true)
 |    |    |-- timeZone: string (nullable = true)
 |    |-- resolution: string (nullable = true)
 |    |-- resolutiondate: string (nullable = true)
 |    |-- security: string (nullable = true)
 |    |-- status: struct (nullable = true)
 |    |    |-- description: string (nullable = true)
 |    |    |-- iconUrl: string (nullable = true)
 |    |    |-- id: string (nullable = true)
&amp;nbsp;
 |-- id: string (nullable = true)
 |-- key: string (nullable = true)
 |-- self: string (nullable = true)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 13:20:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28379#M1576</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-08T13:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28380#M1577</link>
      <description>&lt;P&gt;@Werner Stinckens​&amp;nbsp;or @Hubert Dudek​&amp;nbsp;Could you help me?&lt;/P&gt;&lt;P&gt;I don't want all the information, just some. However, I can only do it in a static file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 13:39:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28380#M1577</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-08T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28381#M1578</link>
      <description>&lt;P&gt;you want help on how to define the schema?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 08:24:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28381#M1578</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-10T08:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28382#M1579</link>
      <description>&lt;P&gt;@Werner Stinckens​&amp;nbsp; If you look at the Schema that was shown above, it has many levels and sub-levels, like: Struct, Array. In this Schema I created is returning only null values, I don't know where I'm going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;schema = StructType([&amp;nbsp;
    StructField('fields', StructType([&amp;nbsp;
       StructField('comment', StructType([ &amp;nbsp;
        StructField("comments",ArrayType( StructField('body', StringType())),True),
       ])),
    ])),         &amp;nbsp;
    StructField('id', StringType()),&amp;nbsp;
    StructField('key', StringType()),&amp;nbsp;
    StructField('self', StringType())
])  
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
df = spark.createDataFrame([response],schema)
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
df = df.withColumn("fields", explode((("fields"))))\&amp;nbsp;
.withColumn("comment", explode((("fields.comment"))))\&amp;nbsp;
.withColumn("comments", explode((("comment.comments"))))
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 11:53:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28382#M1579</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T11:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28383#M1580</link>
      <description>&lt;P&gt;Well, your schema seems ok, but I can't tell without the data itself.&lt;/P&gt;&lt;P&gt;Can you read the JSON files from JIRA with schema inference and then compare?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:01:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28383#M1580</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-10T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28384#M1581</link>
      <description>&lt;P&gt;I did the same, copied the json return and saved it to a file to check the schema. But it is not returning the comment data that is in the body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jira"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1387iC1E39612DBF8B83A/image-size/large?v=v2&amp;amp;px=999" role="button" title="jira" alt="jira" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:08:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28384#M1581</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T12:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28385#M1582</link>
      <description>&lt;P&gt;I mean a printschema or something of the json when you read it in a df.&lt;/P&gt;&lt;P&gt;Do you see all the data when you read the json with schema inference?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:15:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28385#M1582</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-10T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28386#M1583</link>
      <description>&lt;P&gt;The file is not static, the information is returned from the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jora2"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1392i6D06016E6F4984FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="jora2" alt="jora2" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:18:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28386#M1583</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28387#M1584</link>
      <description>&lt;P&gt;I'd land the json first (coming from the REST call), and then process it.&lt;/P&gt;&lt;P&gt;Do you now call the API using 'request' or something similar?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:21:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28387#M1584</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-10T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28388#M1585</link>
      <description>&lt;P&gt;includes a picture in your post above, see please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:24:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28388#M1585</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T12:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28389#M1586</link>
      <description>&lt;P&gt;save the response as a json on your datalake, read it with spark and you have your schema.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:25:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28389#M1586</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-10T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28390#M1587</link>
      <description>&lt;P&gt;I had already done that, but I would like to consume this data in the Dataframe do the transformations and then save the data in a DB.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:31:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28390#M1587</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T12:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28391#M1588</link>
      <description>&lt;P&gt;yes, but hence my question: what happens if you read the json with schema inference?&lt;/P&gt;&lt;P&gt;Does that work? &lt;/P&gt;&lt;P&gt;If the JSON files can have a different schema, it is a good idea to use schema inference.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:38:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28391#M1588</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-10T12:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28392#M1589</link>
      <description>&lt;P&gt;Yes, it is returning null values ​​as in the example I showed above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:44:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28392#M1589</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T12:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28393#M1590</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got it, I'll do it this way. And I get back to you, thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:47:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28393#M1590</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T12:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28394#M1591</link>
      <description>&lt;P&gt;It stayed the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jira2222"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1383i6BE04A0CCEF360F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="jira2222" alt="jira2222" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 16:34:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28394#M1591</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-10T16:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28395#M1592</link>
      <description>&lt;P&gt;if columns are missing, that particular data is not present in the json.  I am not aware of spark skipping columns when reading json with inferschema.  There is an option dropFieldIfAllNull but that is False by default.&lt;/P&gt;&lt;P&gt;That makes me think: you might wanna look into the options of read.json&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-json.html" target="test_blank"&gt;https://spark.apache.org/docs/latest/sql-data-sources-json.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:21:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28395#M1592</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-10-11T08:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Created nested struct schema SPARK - Schema Jira</title>
      <link>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28396#M1593</link>
      <description>&lt;P&gt;Now it's working, when the message returned that it was not parallelized I searched and found the answer. When creating the Dataframe I changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Werner Stinckens​&amp;nbsp; Thanks for the support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df = spark.read.json(sc.parallelize([answer.text]))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 11:19:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/created-nested-struct-schema-spark-schema-jira/m-p/28396#M1593</guid>
      <dc:creator>weldermartins</dc:creator>
      <dc:date>2022-10-11T11:19:14Z</dc:date>
    </item>
  </channel>
</rss>

