<?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 Unable to resolve column error while trying to query the view in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126681#M47734</link>
    <description>&lt;UL&gt;&lt;LI&gt;I have a federated table from snowflake in data bricks say employee.&lt;/LI&gt;&lt;LI&gt;When i executed print schema i am able to see schema as &lt;STRONG&gt;"employeeid": long,"employeename":string&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Tried to create a view as&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;create view vw_emp with schema binding as select `"employeeid"` from employee&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;now when i query the view in sql editor &lt;STRONG&gt;&lt;EM&gt;select * from vw_emp&lt;/EM&gt;&lt;/STRONG&gt; its giving the unable to resolve column&lt;/LI&gt;&lt;LI&gt;but same query if i try in it notebook with all purpose cluster &lt;EM&gt;&lt;STRONG&gt;%sql&amp;nbsp;select * from&amp;nbsp; vw_emp&lt;/STRONG&gt;&lt;/EM&gt; no issues it gives me the output.&lt;/LI&gt;&lt;LI&gt;Is there any way we can also get the output with sql editor.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 28 Jul 2025 11:07:02 GMT</pubDate>
    <dc:creator>nkrom456</dc:creator>
    <dc:date>2025-07-28T11:07:02Z</dc:date>
    <item>
      <title>Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126681#M47734</link>
      <description>&lt;UL&gt;&lt;LI&gt;I have a federated table from snowflake in data bricks say employee.&lt;/LI&gt;&lt;LI&gt;When i executed print schema i am able to see schema as &lt;STRONG&gt;"employeeid": long,"employeename":string&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Tried to create a view as&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;create view vw_emp with schema binding as select `"employeeid"` from employee&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;now when i query the view in sql editor &lt;STRONG&gt;&lt;EM&gt;select * from vw_emp&lt;/EM&gt;&lt;/STRONG&gt; its giving the unable to resolve column&lt;/LI&gt;&lt;LI&gt;but same query if i try in it notebook with all purpose cluster &lt;EM&gt;&lt;STRONG&gt;%sql&amp;nbsp;select * from&amp;nbsp; vw_emp&lt;/STRONG&gt;&lt;/EM&gt; no issues it gives me the output.&lt;/LI&gt;&lt;LI&gt;Is there any way we can also get the output with sql editor.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:07:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126681#M47734</guid>
      <dc:creator>nkrom456</dc:creator>
      <dc:date>2025-07-28T11:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126683#M47735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/176970"&gt;@nkrom456&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try something like this. If you are using backticks it treats a column name exactly as you type (in this case it treats double quotes as a part of a colum name)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;create view vw_emp with schema binding as select `employeeid` from employee &lt;/LI-CODE&gt;&lt;P&gt;OR&lt;/P&gt;&lt;LI-CODE lang="python"&gt;create view vw_emp with schema binding as select employeeid from employee &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:22:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126683#M47735</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-28T11:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126684#M47736</link>
      <description>&lt;P&gt;Hi Thanks for the prompt reply no its also not working the issue is federated table itself having column like "employeeid" with quotes so i have used backtick&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:25:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126684#M47736</guid>
      <dc:creator>nkrom456</dc:creator>
      <dc:date>2025-07-28T11:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126685#M47737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/176970"&gt;@nkrom456&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for clarification. Ok, so it looks like identifiers in Snowflake could be case-sensitive. So for example employeeid could be stored in Snowflake metadata as EMPLOYEEID. If that is the case you need to use double quotes to preserve the case. Could you try that?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/query-federation/snowflake#case-sensitive-database-identifiers" target="_blank"&gt;Run federated queries on Snowflake (OAuth) | Databricks Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.snowflake.com/sql-reference/identifiers-syntax" target="_blank"&gt;Identifier requirements | Snowflake Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:41:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126685#M47737</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-28T11:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126686#M47738</link>
      <description>&lt;P&gt;Thanks a lot for the response. But the same query works on notebook only we are having issue with sql editor.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 11:49:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126686#M47738</guid>
      <dc:creator>nkrom456</dc:creator>
      <dc:date>2025-07-28T11:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126691#M47739</link>
      <description>&lt;P&gt;Maybe SQL Editor resolves column names in a different way compared to regular notebook. Anyway, if I were you I would check first how this attribute was defined in Snowflake.&lt;/P&gt;&lt;P&gt;If it was defined using unquoted identifier, like below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CREATE TABLE employee(employeeid INT)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then&amp;nbsp;&lt;SPAN&gt;this attribute will be stored and&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://docs.snowflake.com/en/sql-reference/identifiers-syntax#label-identifier-casing" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;resolved&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;in uppercase.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If your table attribute was defined using double-quoted identifier then it will preserve case-sensitivity, as you can see in following example from Snowflake documentation.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1753704038207.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18574iEAC21276616879F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1753704038207.png" alt="szymon_dybczak_0-1753704038207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, if it was defined using double-quoted identifier then you have to use double quote as they suggest in databricks documentation, otherwise it won't work.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_1-1753704175756.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18575i1DD47803ED91E5EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_1-1753704175756.png" alt="szymon_dybczak_1-1753704175756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:34:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126691#M47739</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-28T12:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126721#M47749</link>
      <description>&lt;P&gt;Thanks a lot . Yup I have checked the snowflake table and column names has double quotes, but when i executed the below query&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;or&lt;/SPAN&gt; &lt;SPAN&gt;replace&lt;/SPAN&gt; &lt;SPAN&gt;VIEW&lt;/SPAN&gt;&lt;SPAN&gt; vw_employee&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WITH&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMA&lt;/SPAN&gt; &lt;SPAN&gt;BINDING&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt; &lt;SPAN&gt;select&lt;/SPAN&gt; &lt;SPAN&gt;"""employeeid"""&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; employee&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now its not throwing any error but all the values have become employeeid.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Jul 2025 15:33:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126721#M47749</guid>
      <dc:creator>nkrom456</dc:creator>
      <dc:date>2025-07-28T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to resolve column error while trying to query the view</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126735#M47756</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/176970"&gt;@nkrom456&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;So this is exactly what I expected. You have a case-sensitive identifier then. But I think what they meant by double quotes is to use this character " and not specifying it double times like you&amp;nbsp; did.&lt;BR /&gt;I don't have an access to snowflake to test it, but I think you should have something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;CREATE or replace VIEW vw_employee
WITH SCHEMA BINDING
AS select "employeeid" from "employee"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 16:52:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-resolve-column-error-while-trying-to-query-the-view/m-p/126735#M47756</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-07-28T16:52:31Z</dc:date>
    </item>
  </channel>
</rss>

