<?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: A void column was created after connecting to cosmos in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20757#M14051</link>
    <description>&lt;P&gt;Thats good to know that you were able to solve this.&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 18:43:42 GMT</pubDate>
    <dc:creator>Prabakar</dc:creator>
    <dc:date>2022-05-30T18:43:42Z</dc:date>
    <item>
      <title>A void column was created after connecting to cosmos</title>
      <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20753#M14047</link>
      <description>&lt;P&gt;Hi everyone, I have connected to Cosmos using this tutorial &lt;A href="https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration" alt="https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration" target="_blank"&gt;https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating a table using a simple SQL command:&lt;/P&gt;&lt;P&gt;CREATE TABLE mydb.cosmos_table AS&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM cosmosCatalog.mycosmosdb.mycosmoscontainer&lt;/P&gt;&lt;P&gt;LIMIT 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement finishes successfully, when querying or checking the table in the "Data" pane on the left, I receive this error. Apparently, the column "BankErrorDescription" is of type void, and then it can't be found according to the following error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1869iAC9573D392B4B5A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to turn this void column into string for example? One approach would be to unload to storage and then load again but I'd prefer a more direct solution?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:55:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20753#M14047</guid>
      <dc:creator>joel_iemma</dc:creator>
      <dc:date>2022-05-12T12:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: A void column was created after connecting to cosmos</title>
      <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20754#M14048</link>
      <description>&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/11563732/change-a-value-in-a-column-in-sqlite" target="test_blank"&gt;https://stackoverflow.com/questions/11563732/change-a-value-in-a-column-in-sqlite&lt;/A&gt; may be this also you can look for. and the above you mentioned &lt;A href="https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration" alt="https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration" target="_blank"&gt;https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3_2-12/Samples/DatabricksLiveContainerMigration&lt;/A&gt; , I am not the expert but may be this can help. @Joel iemma​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 06:19:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20754#M14048</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-05-26T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: A void column was created after connecting to cosmos</title>
      <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20755#M14049</link>
      <description>&lt;P&gt;Have you tried alter column?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ALTER TABLE [tbl_name] 
ALTER COLUMN [col_name_1] [DATA_TYPE]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 15:02:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20755#M14049</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-05-26T15:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: A void column was created after connecting to cosmos</title>
      <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20756#M14050</link>
      <description>&lt;P&gt;The way I solved it with more dynamically python was:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df = ...
cols = [(col[0], str(col[1])) for col in df.dtypes]
    void_cols = [x[0] for x in cols if x[1] == 'void']
    print(void_cols)
    
    for col in void_cols:
        df = df.withColumn(col, lit(None).cast('string'))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 09:56:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20756#M14050</guid>
      <dc:creator>joel_iemma</dc:creator>
      <dc:date>2022-05-27T09:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: A void column was created after connecting to cosmos</title>
      <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20757#M14051</link>
      <description>&lt;P&gt;Thats good to know that you were able to solve this.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 18:43:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20757#M14051</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-05-30T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: A void column was created after connecting to cosmos</title>
      <link>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20758#M14052</link>
      <description>&lt;P&gt;Hey there @Joel iemma​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you would be happy to mark an answer as best for us, please? It would be really helpful for the other members too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 16:14:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/a-void-column-was-created-after-connecting-to-cosmos/m-p/20758#M14052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-07T16:14:26Z</dc:date>
    </item>
  </channel>
</rss>

