eric-wang-1990 opened a new pull request, #2960:
URL: https://github.com/apache/arrow-adbc/pull/2960

   **Description:**
   
   ### Why
   Power BI ODBC path do escape both _ and %:
   <img width="1317" alt="image" 
src="https://github.com/user-attachments/assets/e817a86d-595c-4e6c-a6cb-ec4ae1081a3b";
 />
   
   ### Proposed changes
   
   This PR improves the handling of SQL pattern wildcards in metadata 
operations for C# drivers:
   
   - Renamed `EscapeUnderscore` parameter to `EscapePatternWildcards` to better 
reflect its purpose
   - Enhanced wildcard escaping to handle both underscore (`_`) and percent 
(`%`) characters
   - Updated the parameter description to clarify its functionality
   - Fixed a bug in `DatabricksConnection.cs` where default namespace was not 
being set correctly
   
   ### How this was tested
   
   - Updated existing test cases to use the new parameter name
   - Manually verified the wildcard escaping functionality works correctly with 
both underscore and percent sign characters
   
   ### Additional context
   
   SQL pattern matching uses underscores (`_`) and percent signs (`%`) as 
wildcards. When searching for tables or columns that contain these characters 
literally, they need to be escaped. Previously, we only handled escaping 
underscores, but this change extends the functionality to handle percent signs 
as well, providing more complete support for SQL pattern matching.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to