Skip to content

Commit c1b2aec

Browse files
committed
Update SDKs
1 parent 87135fe commit c1b2aec

14 files changed

Lines changed: 13654 additions & 13606 deletions

File tree

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

Lines changed: 186 additions & 173 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: 2750 additions & 2748 deletions
Large diffs are not rendered by default.

sdks/go/src/pretty.go

Lines changed: 1912 additions & 1908 deletions
Large diffs are not rendered by default.

sdks/julia/LogicalQueryProtocol.jl/src/equality.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ Base.hash(a::SnapshotMapping, h::UInt) = hash(a.source_relation, hash(a.destinat
442442
Base.isequal(a::SnapshotMapping, b::SnapshotMapping) = isequal(a.destination_path, b.destination_path) && isequal(a.source_relation, b.source_relation)
443443

444444
# Snapshot
445-
Base.:(==)(a::Snapshot, b::Snapshot) = a.mappings == b.mappings
446-
Base.hash(a::Snapshot, h::UInt) = hash(a.mappings, h)
447-
Base.isequal(a::Snapshot, b::Snapshot) = isequal(a.mappings, b.mappings)
445+
Base.:(==)(a::Snapshot, b::Snapshot) = a.prefix == b.prefix && a.mappings == b.mappings
446+
Base.hash(a::Snapshot, h::UInt) = hash(a.mappings, hash(a.prefix, h))
447+
Base.isequal(a::Snapshot, b::Snapshot) = isequal(a.prefix, b.prefix) && isequal(a.mappings, b.mappings)
448448

449449
# Context
450450
Base.:(==)(a::Context, b::Context) = a.relations == b.relations

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,32 +494,38 @@ end
494494

495495
struct Snapshot
496496
mappings::Vector{SnapshotMapping}
497+
prefix::Vector{String}
497498
end
498-
Snapshot(;mappings = Vector{SnapshotMapping}()) = Snapshot(mappings)
499-
PB.default_values(::Type{Snapshot}) = (;mappings = Vector{SnapshotMapping}())
500-
PB.field_numbers(::Type{Snapshot}) = (;mappings = 1)
499+
Snapshot(;mappings = Vector{SnapshotMapping}(), prefix = Vector{String}()) = Snapshot(mappings, prefix)
500+
PB.default_values(::Type{Snapshot}) = (;mappings = Vector{SnapshotMapping}(), prefix = Vector{String}())
501+
PB.field_numbers(::Type{Snapshot}) = (;mappings = 1, prefix = 2)
501502

502503
function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Snapshot}, _endpos::Int=0, _group::Bool=false)
503504
mappings = PB.BufferedVector{SnapshotMapping}()
505+
prefix = PB.BufferedVector{String}()
504506
while !PB.message_done(d, _endpos, _group)
505507
field_number, wire_type = PB.decode_tag(d)
506508
if field_number == 1
507509
PB.decode!(d, mappings)
510+
elseif field_number == 2
511+
PB.decode!(d, prefix)
508512
else
509513
Base.skip(d, wire_type)
510514
end
511515
end
512-
return Snapshot(mappings[])
516+
return Snapshot(mappings[], prefix[])
513517
end
514518

515519
function PB.encode(e::PB.AbstractProtoEncoder, x::Snapshot)
516520
initpos = position(e.io)
517521
!isempty(x.mappings) && PB.encode(e, 1, x.mappings)
522+
!isempty(x.prefix) && PB.encode(e, 2, x.prefix)
518523
return position(e.io) - initpos
519524
end
520525
function PB._encoded_size(x::Snapshot)
521526
encoded_size = 0
522527
!isempty(x.mappings) && (encoded_size += PB._encoded_size(x.mappings, 1))
528+
!isempty(x.prefix) && (encoded_size += PB._encoded_size(x.prefix, 2))
523529
return encoded_size
524530
end
525531

sdks/julia/LogicalQueryProtocol.jl/src/parser.jl

Lines changed: 2268 additions & 2266 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)