Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 113484e

Browse files
committed
experimental fix
1 parent 6746660 commit 113484e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/processor/operator/simple/export_db.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ std::string getSchemaCypher(ClientContext* clientContext) {
146146
for (auto* e : relGroupEntries) {
147147
allEntries.push_back({e->constPtrCast<CatalogEntry>(), CatalogEntryType::REL_GROUP_ENTRY});
148148
}
149-
for (auto* e : sequenceEntries) {
150-
allEntries.push_back({e->constPtrCast<CatalogEntry>(), CatalogEntryType::SEQUENCE_ENTRY});
151-
}
152149
std::sort(allEntries.begin(), allEntries.end(),
153150
[](const EntryAndType& a, const EntryAndType& b) {
154151
return a.entry->getOID() < b.entry->getOID();
@@ -164,17 +161,16 @@ std::string getSchemaCypher(ClientContext* clientContext) {
164161
relTableToCypherInfo)
165162
<< std::endl;
166163
break;
167-
case CatalogEntryType::SEQUENCE_ENTRY:
168-
ss << entryWithType.entry->constPtrCast<SequenceCatalogEntry>()->toCypher(
169-
relGroupToCypherInfo)
170-
<< std::endl;
171-
break;
172164
default:
173165
KU_UNREACHABLE;
174166
break;
175167
}
176168
}
177169

170+
for (const auto sequenceEntry : catalog->getSequenceEntries(transaction)) {
171+
ss << sequenceEntry->toCypher(relGroupToCypherInfo) << std::endl;
172+
}
173+
178174
for (auto macroName : catalog->getMacroNames(transaction)) {
179175
ss << catalog->getScalarMacroFunction(transaction, macroName)->toCypher(macroName)
180176
<< std::endl;

0 commit comments

Comments
 (0)