!plugin ds add - "delta-enhancer-3.3";
Install as App:
!plugin app add "tech.mlsql.plugins.delta.app.ByzerDelta" "delta-enhancer-3.3";
create a delta table
set rawText='''
{"id":1,"content":"MLSQL 是一个好的语言","label":0.0},
{"id":2,"content":"Spark 是一个好的语言","label":1.0}
{"id":3,"content":"MLSQL 语言","label":0.0}
{"id":4,"content":"MLSQL 是一个好的语言","label":0.0}
{"id":5,"content":"MLSQL 是一个好的语言","label":1.0}
{"id":6,"content":"MLSQL 是一个好的语言","label":0.0}
{"id":7,"content":"MLSQL 是一个好的语言","label":0.0}
{"id":8,"content":"MLSQL 是一个好的语言","label":1.0}
{"id":9,"content":"Spark 好的语言","label":0.0}
{"id":10,"content":"MLSQL 是一个好的语言","label":0.0}
''';
load jsonStr.`rawText` as orginal_text_corpus;
save append orginal_text_corpus as delta.`test_demo.table1`;
!deltaTable desc test_demo.table1;
!deltaTable truncate "test_demo.table1";
删除id > 1的数据
!deltaTable delete test_demo.table1 'id > 1';
!deltaTable remove "test_demo.table1";
-- 删除168个小时之前的历史版本
!deltaTable vacuum test_demo.table1 168;