Github user orhankislal commented on a diff in the pull request: https://github.com/apache/incubator-madlib/pull/144#discussion_r124603434 --- Diff: src/ports/postgres/modules/graph/test/wcc.sql_in --- @@ -0,0 +1,92 @@ +/* ----------------------------------------------------------------------- *//** + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + *//* ----------------------------------------------------------------------- */ + +DROP TABLE IF EXISTS vertex, edge; +CREATE TABLE vertex( +vertex_id INTEGER +); +CREATE TABLE edge( +src_node INTEGER, +dest_node INTEGER, +user_id INTEGER +); +INSERT INTO vertex VALUES +(0), +(1), +(2), +(3), +(4), +(5), +(6), +(10), +(11), +(12), +(13), +(14), +(15), +(16); +INSERT INTO edge VALUES +(0, 1, 1), +(0, 2, 1), +(1, 2, 1), +(1, 3, 1), +(2, 3, 1), +(2, 5, 1), +(2, 6, 1), +(3, 0, 1), +(5, 6, 1), +(6, 3, 1), +(10, 11, 2), +(10, 12, 2), +(11, 12, 2), +(11, 13, 2), +(12, 13, 2), +(13, 10, 2), +(15, 16, 2), +(15, 14, 2); + +DROP TABLE IF EXISTS wcc_out; +select weakly_connected_components( --- End diff -- select -> SELECT
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---