fskorgen opened a new issue, #6042:
URL: https://github.com/apache/hop/issues/6042

   ### Apache Hop version?
   
   2.14
   
   ### Java version?
   
   openjdk version "21.0.9" 2025-10-21 LTS
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   When you select database or schema dynamically using variables, the table 
layout may differ from environment to environment.  
   Sometimes this causes problems when fetching metadata, because the query may 
point to a table with a different layout than expected (cached).
   
   Can be solved by adding 
     _DbCache.getInstance().clear(null);_  
   to :  
org.apache.hop.projects.gui.ProjectsGuiPluginProjectsGuiPlugin::enableHopGuiProject
   
   or adding a ProjectActivatedClearDbCache ExtensionPoint   :
   
   _@ExtensionPoint(
       id = "ProjectActivatedClearDbCache",
       extensionPointId = "HopGuiProjectAfterEnabled",
       description = "Called after a project is enabled in Hop GUI")
   public class ProjectActivatedClearDbCache implements 
IExtensionPoint<Project> {
   
     @Override
     public void callExtensionPoint(ILogChannel log, IVariables variables, 
Project p)
         throws HopException {
       try {
         DbCache.getInstance().clear(null);
       } catch (Exception e) {
         if (log!=null) {
           log.logError(e.getMessage());
         }
       }
     }
   }_
   
   
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Hop Gui


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