alamb opened a new pull request, #17951:
URL: https://github.com/apache/datafusion/pull/17951

   ## Which issue does this PR close?
   
   N/A
   
   ## Rationale for this change
   
   While working on an upgrade, I noticed the same schema was created by many 
distinct tests (and I am about to do it again). 
   - https://github.com/apache/datafusion/pull/17888
   
   Since the schema is always the same and is wrapped in an `Arc` we can just 
clone the Arc
   
   ## What changes are included in this PR?
   
   Use a `static LazyLock` to create the schema once and just pass out a 
reference to it
   
   ## Are these changes tested?
   
   Yes by CI
   ## Are there any user-facing changes?
   No this is a test change only


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to