Forum Discussion

padiga-isw's avatar
padiga-isw
Frequent Visitor
1 year ago
Solved

Error Visualizing Data from __time column in Druid

Hi Everyone, 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....
  • v-hashadapu's avatar
    v-hashadapu
    1 year ago

    Hi padiga-isw , Thank you for reaching out to the Microsoft Community Forum.

     

    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.

     

    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.