Skip to content

Commit

Permalink
Testing framework: add ${count} to REPEAT (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfdavid committed Jun 29, 2023
1 parent 0c30785 commit 8172ee7
Show file tree
Hide file tree
Showing 5 changed files with 2,417 additions and 2,649 deletions.
8 changes: 4 additions & 4 deletions src/function/table_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ void TableInfoOperation::tableFunc(std::pair<common::offset_t, common::offset_t>
outputVectors[1]->setValue(outVectorPos, property.name);
outputVectors[2]->setValue(
outVectorPos, common::LogicalTypeUtils::dataTypeToString(property.dataType));
if (tableSchema->isNodeTable &&
reinterpret_cast<catalog::NodeTableSchema*>(tableSchema)->primaryKeyPropertyID ==
property.propertyID) {
outputVectors[3]->setValue(outVectorPos, true /* isPrimaryKey */);
if (tableSchema->isNodeTable) {
auto primaryKeyID =
reinterpret_cast<catalog::NodeTableSchema*>(tableSchema)->primaryKeyPropertyID;
outputVectors[3]->setValue(outVectorPos, primaryKeyID == property.propertyID);
}
outVectorPos++;
}
Expand Down
Loading

0 comments on commit 8172ee7

Please sign in to comment.