Skip to content

Commit e95efb5

Browse files
committed
Migrate to jq v1.7
- Fix jq error "is no valid in a csv row" - Skip algorithm estimation result column "mapView" to overcome jq error - Fix jq error "string and array cannot be added" - jq flatten doesn't work on lists in lists on Windows/git bash jq-7 - Cypher plugin apoc provides a flatten function for that
1 parent edd9fb9 commit e95efb5

9 files changed

+15
-16
lines changed

cypher/Community_Detection/Community_Detection_3a_WeaklyConnectedComponents_Estimate.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RETURN requiredMemory
2323
,heapPercentageMin
2424
,heapPercentageMax
2525
,treeView
26-
,mapView
26+
//,mapView //doesn't work on Windows with git bash jq version jq-1.7-dirty

cypher/Community_Detection/Community_Detection_4a_Label_Propagation_Estimate.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RETURN requiredMemory
2323
,heapPercentageMin
2424
,heapPercentageMax
2525
,treeView
26-
,mapView
26+
//,mapView //doesn't work on Windows with git bash jq version jq-1.7-dirty

cypher/Community_Detection/Community_Detection_5a_K_Core_Decomposition_Estimate.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ RETURN requiredMemory
2121
,heapPercentageMin
2222
,heapPercentageMax
2323
,treeView
24-
,mapView
24+
//,mapView //doesn't work on Windows with git bash jq version jq-1.7-dirty

cypher/Community_Detection/Community_Detection_6a_Approximate_Maximum_k_cut_Estimate.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RETURN requiredMemory
2323
,heapPercentageMin
2424
,heapPercentageMax
2525
,treeView
26-
,mapView
26+
//,mapView //doesn't work on Windows with git bash jq version jq-1.7-dirty

cypher/External_Dependencies/External_package_usage_per_artifact_sorted_top.cypher

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ RETURN artifactName
4646
,externalTypeRate
4747
,numberOfExternalTypeCaller
4848
,numberOfExternalTypeCalls
49-
,size(externalPackageNames) AS numberOfExternalPackages
50-
,externalPackageNames[0..4] AS top5ExternalPackages
51-
,externalTypeNames[0..1] AS someExternalTypes
52-
LIMIT 40
49+
,size(externalPackageNames) AS numberOfExternalPackages
50+
,externalPackageNames[0..4] AS top5ExternalPackages
51+
,apoc.coll.flatten(externalTypeNames)[0..9] AS someExternalTypes

cypher/Node_Embeddings/Node_Embeddings_1a_Fast_Random_Projection_Estimate.cypher

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ CALL gds.fastRP.stream.estimate(
66
,relationshipWeightProperty: $dependencies_projection_weight_property
77
}
88
)
9-
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
10-
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
9+
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView
10+
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView

cypher/Node_Embeddings/Node_Embeddings_2a_Hash_GNN_Estimate.cypher

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ CALL gds.beta.hashgnn.stream.estimate(
1111
,outputDimension: toInteger($dependencies_projection_embedding_dimension)
1212
}
1313
)
14-
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
15-
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
14+
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView
15+
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView

cypher/Node_Embeddings/Node_Embeddings_3a_Node2Vec_Estimate.cypher

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ CALL gds.node2vec.write.estimate(
88
,writeProperty: $dependencies_projection_write_property
99
}
1010
)
11-
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
12-
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
11+
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView
12+
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView

cypher/Similarity/Similarity_1a_Estimate.cypher

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ CALL gds.nodeSimilarity.write.estimate(
77
,writeProperty: 'score'
88
,topK: 3
99
})
10-
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
11-
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView, mapView
10+
YIELD requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView
11+
RETURN requiredMemory, nodeCount, relationshipCount, bytesMin, bytesMax, heapPercentageMin, heapPercentageMax, treeView

0 commit comments

Comments
 (0)