- 
                Notifications
    You must be signed in to change notification settings 
- Fork 208
Support the volatility config of function nodes #1414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            QMalcolm
  merged 17 commits into
  main
from
qmalcolm--1345-begin-templating-volatility-for-scalar-functions
  
      
      
   
  Oct 31, 2025 
      
    
                
     Merged
            
            Support the volatility config of function nodes #1414
                    QMalcolm
  merged 17 commits into
  main
from
qmalcolm--1345-begin-templating-volatility-for-scalar-functions
  
      
      
   
  Oct 31, 2025 
              
            
      
        
          +420
        
        
          −15
        
        
          
        
      
    
  
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    …nsure we get `EventCatcher` from package
              
                    QMalcolm
  
              
              commented
              
                  
                    Oct 29, 2025 
                  
              
              
            
            
        
          
                dbt-snowflake/src/dbt/include/snowflake/macros/materializations/functions/scalar.sql
              
                Outdated
          
            Show resolved
            Hide resolved
        
      36e15ee    to
    52aeb96      
    Compare
  
            
          
                dbt-redshift/src/dbt/include/redshift/macros/materializations/functions/scalar.sql
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                dbt-snowflake/src/dbt/include/snowflake/macros/materializations/functions/scalar.sql
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Technically it should be impossible for a new volatility to be created without our knowledge of it and for it to reach dbt-adapters macros. That is because `volatility` is defined as an `Enum` in core with only three possible values `deterministic`, `stable`, and `non-deterministic`. But if a new volatility is invented, and we start supporting setting it in core then we will want to handle it in dbt-adapters (by default as a warning) until we add _specific_ handling in dbt-adapters to support it.
              
                    colin-rogers-dbt
  
              
              approved these changes
              
                  
                    Oct 30, 2025 
                  
              
              
            
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
resolves #1345
Problem
dbt-core added the ability to set function node volatility in dbt-labs/dbt-core#12100. Thus in adapters we needed to begin interpolating the correct volatility value into the function materialization macros.
Solution
Checklist