torbjoernk commented on issue #2543:
URL: https://github.com/apache/arrow-adbc/issues/2543#issuecomment-2674743090

   I have to admit an embarrassing mistake on my end on how Bash handles 
variables. We are using pydantic to read in various settings from the 
environment.
   
   Minimal example of the underlying problem:
   pydantic_test.py:
   ```py
   from pydantic_settings import BaseSettings
   
   
   class A(BaseSettings):
       VAR_A: str
       VAR_B: str
   
   if __name__ == "__main__":
       a = A()
       print(f"{a.VAR_A=}")
       print(f"{a.VAR_B=}")
   ```
   
   ```
   pc@3e4078e998cc:/src$ export VAR_A=abc
   pc@3e4078e998cc:/src$ export VAR_B=d$VAR
   pc@3e4078e998cc:/src$ python pydantic_test.py
   a.VAR_A='abc'
   a.VAR_B='d'
   pc@3e4078e998cc:/src$ export VAR_B=d\$VAR
   pc@3e4078e998cc:/src$ python pydantic_test.py
   a.VAR_A='abc'
   a.VAR_B='d$VAR'
   ```
   
   Sorry for the noise 🙏 


-- 
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