Class Versions


  • public final class Versions
    extends Object
    • Method Detail

      • checkSpiVersion

        public static void checkSpiVersion​(ConnectorContext context,
                                           ConnectorFactory connectorFactory)
        Check if the SPI version of the Trino server matches exactly the SPI version the connector plugin was built for. Using plugins built for a different version of Trino may fail at runtime, especially if plugin author chooses not to maintain compatibility with older SPI versions, as happens for plugins maintained together with the Trino project.