<?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: Error Visualizing Data from __time column in Druid in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4756616#M62153</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882992"&gt;@v-hashadapu&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for the detailed explanation. I have a doubt regarding SQLColumns, please correct me if I am wrong&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolumns-function?view=sql-server-ver17" target="_blank"&gt;https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolumns-function?view=sql-server-ver17&lt;/A&gt;&lt;BR /&gt;In the above link I couldn't find any SEARCHABLE property that can be set in SQLColumns, is it a custom property that needs to be added?&lt;BR /&gt;I have a Trino custom connector where the SQLColumn returns&lt;BR /&gt;```&lt;BR /&gt;"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "COLUMN_NAME", "DATA_TYPE", "TYPE_NAME", "COLUMN_SIZE", "BUFFER_LENGTH", "DECIMAL_DIGITS", "NUM_PREC_RADIX", "NULLABLE", "REMARKS", "COLUMN_DEF", "SQL_DATA_TYPE", "SQL_DATETIME_SUB", "CHAR_OCTET_LENGTH", "ORDINAL_POSITION", "IS_NULLABLE", "USER_DATA_TYPE"&lt;BR /&gt;"tpch", "tiny", "nation", "name", -9, "varchar", 25, 25, &amp;lt;Null&amp;gt;, &amp;lt;Null&amp;gt;, 0, &amp;lt;Null&amp;gt;, &amp;lt;Null&amp;gt;, -9, &amp;lt;Null&amp;gt;, 25, 2, "NO", 0&lt;BR /&gt;```&lt;BR /&gt;Where it doesn't define any SEARCHABLE property in SQLColumns similar to Druid, but it is able to display data with Timestamp datatype&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="padigaisw_0-1751980758039.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281665i40F4D5CA18558416/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_0-1751980758039.png" alt="padigaisw_0-1751980758039.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I also ran SQLColAttribute to check the SEARCHABLE property of __time column it returns 3(SQL_SEARCHABLE).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="padigaisw_1-1751980947151.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281671i3B9100556EE1B5B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_1-1751980947151.png" alt="padigaisw_1-1751980947151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 13:24:23 GMT</pubDate>
    <dc:creator>padiga-isw</dc:creator>
    <dc:date>2025-07-08T13:24:23Z</dc:date>
    <item>
      <title>Error Visualizing Data from __time column in Druid</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4755058#M62130</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Everyone,&lt;BR /&gt;I have created a Power BI custom connector for Simba Druid Driver to connect through DirectQuery. I am getting "Couldn't load the data for this visual OLE DB or ODBC error: [Expression. Error] We couldn't fold the expression to the data source. Please try a simpler expression.." when I try to fetch data from __time column but it works fine when other columns/datatypes get called.&lt;BR /&gt;&lt;BR /&gt;Issue when connected through __time column:&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="padigaisw_0-1751882433429.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281393i91C4658C39F3EBD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_0-1751882433429.jpeg" alt="padigaisw_0-1751882433429.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Works fine with other columns (These are string/long values as druid doesn't support timestamp datatype for non __time columns):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="padigaisw_1-1751882458788.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281394iD8ED703574612F95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_1-1751882458788.png" alt="padigaisw_1-1751882458788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have monitored the driver logs and requests, I found that no request is sent by driver to fetch about __time column.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I am also able to see the data during preview and data transformation.&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="padigaisw_2-1751882473577.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281395iCD8A31CCD356358F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_2-1751882473577.png" alt="padigaisw_2-1751882473577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try to apply any filter on this column, it throws an error saying&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error Message":"Data Type of column __time with searchable property UNSEARCHABLE should be SEARCHABLE or ALL_EXCEPT_LIKE. You can override the supported data types from ODBC driver using SQLGetTypeInfo."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="padigaisw_3-1751882496275.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281396iC4F610A86738FE3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_3-1751882496275.png" alt="padigaisw_3-1751882496275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We can see the __time is of TIMESTAMP datatype, and when we run SQLGetInfo on this datatype&lt;BR /&gt;```&lt;BR /&gt;"TYPE_NAME", "DATA_TYPE", "COLUMN_SIZE", "LITERAL_PREFIX", "LITERAL_SUFFIX", "CREATE_PARAMS", "NULLABLE", "CASE_SENSITIVE", "SEARCHABLE", "UNSIGNED_ATTRIBUTE", "FIXED_PREC_SCALE", "AUTO_UNIQUE_VALUE", "LOCAL_TYPE_NAME", "MINIMUM_SCALE", "MAXIMUM_SCALE", "SQL_DATA_TYPE", "SQL_DATETIME_SUB", "NUM_PREC_RADIX", "INTERVAL_PRECISION", "USER_DATA_TYPE"&lt;BR /&gt;"TIMESTAMP", 93, 29, "'", "'", &amp;lt;Null&amp;gt;, 1, 0, 3, &amp;lt;Null&amp;gt;, 0, &amp;lt;Null&amp;gt;, "TIMESTAMP", 0, 0, 9, 3, &amp;lt;Null&amp;gt;, &amp;lt;Null&amp;gt;, 4193&lt;BR /&gt;```&lt;BR /&gt;Where it shows SEARCHABLE property is set to 3, which is SQL_SEARCHABLE.&lt;BR /&gt;&lt;BR /&gt;Can you please help me with this issue and please let me know if you need any more error logs.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 10:13:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4755058#M62130</guid>
      <dc:creator>padiga-isw</dc:creator>
      <dc:date>2025-07-07T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error Visualizing Data from __time column in Druid</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4755403#M62131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/926429"&gt;@padiga-isw&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is because the Simba Druid ODBC driver is reporting the time column as not searchable at the column level. Even though SQLGetTypeInfo might report the TIMESTAMP type as SEARCHABLE = 3, Power BI makes its actual decision based on the SEARCHABLE property returned by SQLColumns for that specific column. In your case, Power BI tries to apply a filter on time but sees SEARCHABLE = 0 (SQL_UNSEARCHABLE), so it refuses to fold the expression. That’s why no query is sent and you get the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI DirectQuery still requires columns to be marked as SEARCHABLE (2 or 3) to apply filters or comparisons. This applies whether you're using Microsoft Fabric or the standard Power BI Desktop or Service. If you want filtering to work on time, you need to make sure the driver, either through its native code or metadata config returns SEARCHABLE = 2 or 3 for that column via SQLColumns. Simba drivers built on the SimbaEngine SDK support this, but it must be explicitly set in the metadata layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't modify the driver, the practical workaround is to create a new Druid column &amp;nbsp;that mirrors time but isn’t treated as special by the driver and is returned with the correct metadata. That column will work with filters in Power BI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/query-folding-basics" target="_blank"&gt;Understanding query evaluation and query folding in Power Query - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolumns-function?view=sql-server-ver16" target="_blank"&gt;SQLColumns Function - ODBC API Reference | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlgettypeinfo-function?view=sql-server-ver17" target="_blank"&gt;SQLGetTypeInfo Function - ODBC API Reference | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about" target="_blank"&gt;DirectQuery in Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/odbc/admin/odbc-data-source-administrator?view=sql-server-ver16#tracing-tab" target="_blank"&gt;ODBC Data Source Administrator - Open Database Connectivity (ODBC) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this helped solve the issue, please consider marking it&amp;nbsp;&lt;STRONG&gt;“Accept as Solution”&lt;/STRONG&gt; so others with similar queries may find it more easily. If not, please share the details, always happy to help.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 13:12:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4755403#M62131</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-07-07T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error Visualizing Data from __time column in Druid</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4756616#M62153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882992"&gt;@v-hashadapu&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for the detailed explanation. I have a doubt regarding SQLColumns, please correct me if I am wrong&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolumns-function?view=sql-server-ver17" target="_blank"&gt;https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolumns-function?view=sql-server-ver17&lt;/A&gt;&lt;BR /&gt;In the above link I couldn't find any SEARCHABLE property that can be set in SQLColumns, is it a custom property that needs to be added?&lt;BR /&gt;I have a Trino custom connector where the SQLColumn returns&lt;BR /&gt;```&lt;BR /&gt;"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "COLUMN_NAME", "DATA_TYPE", "TYPE_NAME", "COLUMN_SIZE", "BUFFER_LENGTH", "DECIMAL_DIGITS", "NUM_PREC_RADIX", "NULLABLE", "REMARKS", "COLUMN_DEF", "SQL_DATA_TYPE", "SQL_DATETIME_SUB", "CHAR_OCTET_LENGTH", "ORDINAL_POSITION", "IS_NULLABLE", "USER_DATA_TYPE"&lt;BR /&gt;"tpch", "tiny", "nation", "name", -9, "varchar", 25, 25, &amp;lt;Null&amp;gt;, &amp;lt;Null&amp;gt;, 0, &amp;lt;Null&amp;gt;, &amp;lt;Null&amp;gt;, -9, &amp;lt;Null&amp;gt;, 25, 2, "NO", 0&lt;BR /&gt;```&lt;BR /&gt;Where it doesn't define any SEARCHABLE property in SQLColumns similar to Druid, but it is able to display data with Timestamp datatype&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="padigaisw_0-1751980758039.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281665i40F4D5CA18558416/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_0-1751980758039.png" alt="padigaisw_0-1751980758039.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I also ran SQLColAttribute to check the SEARCHABLE property of __time column it returns 3(SQL_SEARCHABLE).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="padigaisw_1-1751980947151.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1281671i3B9100556EE1B5B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="padigaisw_1-1751980947151.png" alt="padigaisw_1-1751980947151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 13:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4756616#M62153</guid>
      <dc:creator>padiga-isw</dc:creator>
      <dc:date>2025-07-08T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error Visualizing Data from __time column in Druid</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4758555#M62182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/926429"&gt;@padiga-isw&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI does not expect a SEARCHABLE field in the SQLColumns result, that attribute isn’t part of the standard output. Instead, it uses the SQLColAttribute call with SQL_DESC_SEARCHABLE to determine if a column supports filtering. However, in your case, even though SQLColAttribute returns SEARCHABLE = 3 for __time, Power BI still blocks folding. This means it likely treats the column as reserved or non-searchable during schema discovery, either because of the driver’s internal metadata or due to Power BI recognizing the column name (__time) as special.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only reliable workaround is to expose a duplicate of __time under a neutral name like event_time, typed as a standard TIMESTAMP and not flagged internally as special. That column avoids reserved-name logic and will allow filters to fold properly. If you're maintaining the driver, the long-term fix is to make sure the __time column is not treated as special or non-searchable in the driver’s schema metadata, not just at runtime.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 07:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-Visualizing-Data-from-time-column-in-Druid/m-p/4758555#M62182</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-07-10T07:18:05Z</dc:date>
    </item>
  </channel>
</rss>

