File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
package io .trino .plugin .iceberg ;
15
15
16
16
import com .google .inject .Inject ;
17
- import io .trino .spi . Node ;
17
+ import io .trino .plugin . hive . NodeVersion ;
18
18
import org .apache .iceberg .EnvironmentContext ;
19
19
20
20
import static java .util .Objects .requireNonNull ;
24
24
public class IcebergEnvironmentContext
25
25
{
26
26
@ Inject
27
- public IcebergEnvironmentContext (Node currentNode )
27
+ public IcebergEnvironmentContext (NodeVersion nodeVersion )
28
28
{
29
- requireNonNull (currentNode , "currentNode is null" );
29
+ requireNonNull (nodeVersion , "nodeVersion is null" );
30
30
EnvironmentContext .put (ENGINE_NAME , "trino" );
31
- EnvironmentContext .put (ENGINE_VERSION , currentNode . getVersion ());
31
+ EnvironmentContext .put (ENGINE_VERSION , nodeVersion . toString ());
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments