Skip to content
Snippets Groups Projects
Commit 3b5b8304 authored by Joris's avatar Joris
Browse files

uncommented clustering

parent 43735ce7
No related branches found
No related tags found
1 merge request!2Groupby overhaul
...@@ -15,16 +15,16 @@ func (s *Service) ConvertQuery(totalJSONQuery *entity.IncomingQueryJSON) (*strin ...@@ -15,16 +15,16 @@ func (s *Service) ConvertQuery(totalJSONQuery *entity.IncomingQueryJSON) (*strin
queryJSON := totalJSONQuery queryJSON := totalJSONQuery
// query, rest, isRest := checkForQueryCluster(queryJSON) query, rest, isRest := checkForQueryCluster(queryJSON)
// if isRest { if isRest {
// fmt.Println("Rest:") fmt.Println("Rest:")
// fmt.Println(rest) fmt.Println(rest)
// // If something needs to be done with other query cluster, then add code here // If something needs to be done with other query cluster, then add code here
// } }
finalCypher, err := createCypher(queryJSON) finalCypher, err := createCypher(query)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
...@@ -802,6 +802,8 @@ func Test6(t *testing.T) { ...@@ -802,6 +802,8 @@ func Test6(t *testing.T) {
var JSONQuery entity.IncomingQueryJSON var JSONQuery entity.IncomingQueryJSON
json.Unmarshal(query, &JSONQuery) json.Unmarshal(query, &JSONQuery)
fmt.Println(JSONQuery)
fmt.Println(" ")
s := NewService() s := NewService()
cypher, err := s.ConvertQuery(&JSONQuery) cypher, err := s.ConvertQuery(&JSONQuery)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment