Byzer-eval is an extension of Byzer, which can execute string variable as Byzer script. This means you can write a script in a variable and execute it.
With the help of UDF of Byzer and Byzer-python, you can build a complex Byzer script and then deliver it to this extension to execute it and then get the result table in following steps.
!plugin app add - byzer-eval-3.3;
-
Download the latest release from here.
-
Move the downloaded jar file to the plugin directory of Byzer.
-
Modify
conf/byzer.properties.overwrite
file of Byzer, add the following configurations:# Configure entry class of the extension streaming.plugin.clzznames=tech.mlsql.plugins.eval.ByzerEvalApp
-
Restart Byzer (./bin/byzer.sh restart) with the new configuration , the extension will be loaded automatically.
set code1='''
select 1 as a as b;
''';
!eval code1;
select * from b as output;
If you want to control the access of this extension with byzer-simple-auth, try the following command:
!simpleAuth resource add _ -type mlsql_system -path "__eval__" -allows allwefantasy;
!simpleAuth admin reload;