Skip to content

Commit b2d2aaa

Browse files
committed
Update SDKs
1 parent 3ed06a8 commit b2d2aaa

10 files changed

Lines changed: 12114 additions & 11744 deletions

File tree

sdks/go/src/lqp/v1/logic.pb.go

Lines changed: 222 additions & 143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/go/src/parser.go

Lines changed: 2469 additions & 2403 deletions
Large diffs are not rendered by default.

sdks/go/src/pretty.go

Lines changed: 1625 additions & 1594 deletions
Large diffs are not rendered by default.

sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ using ProtoBuf.EnumX: @enumx
88
export DateTimeType, RelationId, Var, FloatType, UInt128Type, Int32Type, Float32Type
99
export BeTreeConfig, DateTimeValue, DateValue, OrMonoid, CSVLocator, Int128Type
1010
export DecimalType, UnspecifiedType, DateType, MissingType, MissingValue, CSVConfig
11-
export IntType, StringType, Int128Value, UInt128Value, BooleanType, DecimalValue
12-
export BeTreeLocator, var"#Type", Value, GNFColumn, MinMonoid, SumMonoid, MaxMonoid
13-
export BeTreeInfo, Binding, EDB, Attribute, Term, CSVData, Monoid, BeTreeRelation, Cast
14-
export Pragma, Atom, RelTerm, Data, Primitive, RelAtom, Abstraction, Algorithm, Assign
15-
export Break, Conjunction, Constraint, Def, Disjunction, Exists, FFI, FunctionalDependency
16-
export MonoidDef, MonusDef, Not, Reduce, Script, Upsert, Construct, Loop, Declaration
17-
export Instruction, Formula
11+
export IntType, StringType, Int128Value, UInt128Value, BooleanType, UInt32Type
12+
export DecimalValue, BeTreeLocator, var"#Type", Value, GNFColumn, MinMonoid, SumMonoid
13+
export MaxMonoid, BeTreeInfo, Binding, EDB, Attribute, Term, CSVData, Monoid
14+
export BeTreeRelation, Cast, Pragma, Atom, RelTerm, Data, Primitive, RelAtom, Abstraction
15+
export Algorithm, Assign, Break, Conjunction, Constraint, Def, Disjunction, Exists, FFI
16+
export FunctionalDependency, MonoidDef, MonusDef, Not, Reduce, Script, Upsert, Construct
17+
export Loop, Declaration, Instruction, Formula
1818
abstract type var"##Abstract#Abstraction" end
1919
abstract type var"##Abstract#Not" end
2020
abstract type var"##Abstract#Break" end
@@ -777,6 +777,25 @@ function PB._encoded_size(x::BooleanType)
777777
return encoded_size
778778
end
779779

780+
struct UInt32Type end
781+
782+
function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:UInt32Type}, _endpos::Int=0, _group::Bool=false)
783+
while !PB.message_done(d, _endpos, _group)
784+
field_number, wire_type = PB.decode_tag(d)
785+
Base.skip(d, wire_type)
786+
end
787+
return UInt32Type()
788+
end
789+
790+
function PB.encode(e::PB.AbstractProtoEncoder, x::UInt32Type)
791+
initpos = position(e.io)
792+
return position(e.io) - initpos
793+
end
794+
function PB._encoded_size(x::UInt32Type)
795+
encoded_size = 0
796+
return encoded_size
797+
end
798+
780799
struct DecimalValue
781800
precision::Int32
782801
scale::Int32
@@ -879,14 +898,14 @@ function PB._encoded_size(x::BeTreeLocator)
879898
end
880899

881900
struct var"#Type"
882-
var"#type"::Union{Nothing,OneOf{<:Union{UnspecifiedType,StringType,IntType,FloatType,UInt128Type,Int128Type,DateType,DateTimeType,MissingType,DecimalType,BooleanType,Int32Type,Float32Type}}}
901+
var"#type"::Union{Nothing,OneOf{<:Union{UnspecifiedType,StringType,IntType,FloatType,UInt128Type,Int128Type,DateType,DateTimeType,MissingType,DecimalType,BooleanType,Int32Type,Float32Type,UInt32Type}}}
883902
end
884903
var"#Type"(;var"#type" = nothing) = var"#Type"(var"#type")
885904
PB.oneof_field_types(::Type{var"#Type"}) = (;
886-
var"#type" = (;unspecified_type=UnspecifiedType, string_type=StringType, int_type=IntType, float_type=FloatType, uint128_type=UInt128Type, int128_type=Int128Type, date_type=DateType, datetime_type=DateTimeType, missing_type=MissingType, decimal_type=DecimalType, boolean_type=BooleanType, int32_type=Int32Type, float32_type=Float32Type),
905+
var"#type" = (;unspecified_type=UnspecifiedType, string_type=StringType, int_type=IntType, float_type=FloatType, uint128_type=UInt128Type, int128_type=Int128Type, date_type=DateType, datetime_type=DateTimeType, missing_type=MissingType, decimal_type=DecimalType, boolean_type=BooleanType, int32_type=Int32Type, float32_type=Float32Type, uint32_type=UInt32Type),
887906
)
888-
PB.default_values(::Type{var"#Type"}) = (;unspecified_type = nothing, string_type = nothing, int_type = nothing, float_type = nothing, uint128_type = nothing, int128_type = nothing, date_type = nothing, datetime_type = nothing, missing_type = nothing, decimal_type = nothing, boolean_type = nothing, int32_type = nothing, float32_type = nothing)
889-
PB.field_numbers(::Type{var"#Type"}) = (;unspecified_type = 1, string_type = 2, int_type = 3, float_type = 4, uint128_type = 5, int128_type = 6, date_type = 7, datetime_type = 8, missing_type = 9, decimal_type = 10, boolean_type = 11, int32_type = 12, float32_type = 13)
907+
PB.default_values(::Type{var"#Type"}) = (;unspecified_type = nothing, string_type = nothing, int_type = nothing, float_type = nothing, uint128_type = nothing, int128_type = nothing, date_type = nothing, datetime_type = nothing, missing_type = nothing, decimal_type = nothing, boolean_type = nothing, int32_type = nothing, float32_type = nothing, uint32_type = nothing)
908+
PB.field_numbers(::Type{var"#Type"}) = (;unspecified_type = 1, string_type = 2, int_type = 3, float_type = 4, uint128_type = 5, int128_type = 6, date_type = 7, datetime_type = 8, missing_type = 9, decimal_type = 10, boolean_type = 11, int32_type = 12, float32_type = 13, uint32_type = 14)
890909

891910
function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:var"#Type"}, _endpos::Int=0, _group::Bool=false)
892911
var"#type" = nothing
@@ -918,6 +937,8 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:var"#Type"}, _endpos::In
918937
var"#type" = OneOf(:int32_type, PB.decode(d, Ref{Int32Type}))
919938
elseif field_number == 13
920939
var"#type" = OneOf(:float32_type, PB.decode(d, Ref{Float32Type}))
940+
elseif field_number == 14
941+
var"#type" = OneOf(:uint32_type, PB.decode(d, Ref{UInt32Type}))
921942
else
922943
Base.skip(d, wire_type)
923944
end
@@ -954,6 +975,8 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::var"#Type")
954975
PB.encode(e, 12, x.var"#type"[]::Int32Type)
955976
elseif x.var"#type".name === :float32_type
956977
PB.encode(e, 13, x.var"#type"[]::Float32Type)
978+
elseif x.var"#type".name === :uint32_type
979+
PB.encode(e, 14, x.var"#type"[]::UInt32Type)
957980
end
958981
return position(e.io) - initpos
959982
end
@@ -986,19 +1009,21 @@ function PB._encoded_size(x::var"#Type")
9861009
encoded_size += PB._encoded_size(x.var"#type"[]::Int32Type, 12)
9871010
elseif x.var"#type".name === :float32_type
9881011
encoded_size += PB._encoded_size(x.var"#type"[]::Float32Type, 13)
1012+
elseif x.var"#type".name === :uint32_type
1013+
encoded_size += PB._encoded_size(x.var"#type"[]::UInt32Type, 14)
9891014
end
9901015
return encoded_size
9911016
end
9921017

9931018
struct Value
994-
value::Union{Nothing,OneOf{<:Union{String,Int64,Float64,UInt128Value,Int128Value,MissingValue,DateValue,DateTimeValue,DecimalValue,Bool,Int32,Float32}}}
1019+
value::Union{Nothing,OneOf{<:Union{String,Int64,Float64,UInt128Value,Int128Value,MissingValue,DateValue,DateTimeValue,DecimalValue,Bool,Int32,Float32,UInt32}}}
9951020
end
9961021
Value(;value = nothing) = Value(value)
9971022
PB.oneof_field_types(::Type{Value}) = (;
998-
value = (;string_value=String, int_value=Int64, float_value=Float64, uint128_value=UInt128Value, int128_value=Int128Value, missing_value=MissingValue, date_value=DateValue, datetime_value=DateTimeValue, decimal_value=DecimalValue, boolean_value=Bool, int32_value=Int32, float32_value=Float32),
1023+
value = (;string_value=String, int_value=Int64, float_value=Float64, uint128_value=UInt128Value, int128_value=Int128Value, missing_value=MissingValue, date_value=DateValue, datetime_value=DateTimeValue, decimal_value=DecimalValue, boolean_value=Bool, int32_value=Int32, float32_value=Float32, uint32_value=UInt32),
9991024
)
1000-
PB.default_values(::Type{Value}) = (;string_value = "", int_value = zero(Int64), float_value = zero(Float64), uint128_value = nothing, int128_value = nothing, missing_value = nothing, date_value = nothing, datetime_value = nothing, decimal_value = nothing, boolean_value = false, int32_value = zero(Int32), float32_value = zero(Float32))
1001-
PB.field_numbers(::Type{Value}) = (;string_value = 1, int_value = 2, float_value = 3, uint128_value = 4, int128_value = 5, missing_value = 6, date_value = 7, datetime_value = 8, decimal_value = 9, boolean_value = 10, int32_value = 11, float32_value = 12)
1025+
PB.default_values(::Type{Value}) = (;string_value = "", int_value = zero(Int64), float_value = zero(Float64), uint128_value = nothing, int128_value = nothing, missing_value = nothing, date_value = nothing, datetime_value = nothing, decimal_value = nothing, boolean_value = false, int32_value = zero(Int32), float32_value = zero(Float32), uint32_value = zero(UInt32))
1026+
PB.field_numbers(::Type{Value}) = (;string_value = 1, int_value = 2, float_value = 3, uint128_value = 4, int128_value = 5, missing_value = 6, date_value = 7, datetime_value = 8, decimal_value = 9, boolean_value = 10, int32_value = 11, float32_value = 12, uint32_value = 13)
10021027

10031028
function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Value}, _endpos::Int=0, _group::Bool=false)
10041029
value = nothing
@@ -1028,6 +1053,8 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Value}, _endpos::Int=0,
10281053
value = OneOf(:int32_value, PB.decode(d, Int32))
10291054
elseif field_number == 12
10301055
value = OneOf(:float32_value, PB.decode(d, Float32))
1056+
elseif field_number == 13
1057+
value = OneOf(:uint32_value, PB.decode(d, UInt32))
10311058
else
10321059
Base.skip(d, wire_type)
10331060
end
@@ -1062,6 +1089,8 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::Value)
10621089
PB.encode(e, 11, x.value[]::Int32)
10631090
elseif x.value.name === :float32_value
10641091
PB.encode(e, 12, x.value[]::Float32)
1092+
elseif x.value.name === :uint32_value
1093+
PB.encode(e, 13, x.value[]::UInt32)
10651094
end
10661095
return position(e.io) - initpos
10671096
end
@@ -1092,6 +1121,8 @@ function PB._encoded_size(x::Value)
10921121
encoded_size += PB._encoded_size(x.value[]::Int32, 11)
10931122
elseif x.value.name === :float32_value
10941123
encoded_size += PB._encoded_size(x.value[]::Float32, 12)
1124+
elseif x.value.name === :uint32_value
1125+
encoded_size += PB._encoded_size(x.value[]::UInt32, 13)
10951126
end
10961127
return encoded_size
10971128
end

0 commit comments

Comments
 (0)