You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2022/01/06 16:40:44 UTC

[madlib] branch master updated (bf1893a -> be297fe)

This is an automated email from the ASF dual-hosted git repository.

okislal pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git.


    from bf1893a  Release: Update version numbers and add release notes
     new 8e81bb8  Update Apache copyright date to 2022 in the NOTICE file
     new 03e5229  Update RELEASE_NOTES and DBSCAN docs
     new ccb0314  Build: Add OSX tarball for release
     new be297fe  Add JIRA numbers to the RELEASE_NOTES

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CMakeLists.txt                                     | 30 ++++++++++++++++++++--
 NOTICE                                             |  2 +-
 RELEASE_NOTES                                      |  6 +++--
 deploy/CMakeLists.txt                              | 12 +++++++++
 deploy/Readme_OSX                                  | 24 +++++++++++++++++
 .../Options.cmake => deploy/link_madlib_folders.sh | 15 +++++------
 src/ports/postgres/modules/dbscan/dbscan.sql_in    |  9 ++++++-
 7 files changed, 83 insertions(+), 15 deletions(-)
 create mode 100644 deploy/Readme_OSX
 copy cmake/Options.cmake => deploy/link_madlib_folders.sh (72%)
 mode change 100644 => 100755

[madlib] 03/04: Build: Add OSX tarball for release

Posted by ok...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit ccb0314347d512e9c8bf3e5c01ee91a14f9eaad5
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Mon Dec 20 20:38:35 2021 -0500

    Build: Add OSX tarball for release
    
    JIRA: MADLIB-1493
    
    Since the usual OSX package is not supported anymore, MADlib will
    release a compressed file that contains the build folder.
    
    To ensure portability, this commit adds a script to update symlinks
    Current, bin, and doc as well as a Readme file.
---
 CMakeLists.txt                | 30 ++++++++++++++++++++++++++++--
 deploy/CMakeLists.txt         | 12 ++++++++++++
 deploy/Readme_OSX             | 24 ++++++++++++++++++++++++
 deploy/link_madlib_folders.sh | 19 +++++++++++++++++++
 4 files changed, 83 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d9199e..2990a55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -313,8 +313,14 @@ install(
     DESTINATION .
     COMPONENT core
 )
-
-
+if(APPLE)
+    install(
+        FILES
+            "${CMAKE_CURRENT_SOURCE_DIR}/deploy/Readme_OSX"
+            "${CMAKE_CURRENT_SOURCE_DIR}/deploy/link_madlib_folders.sh"
+        DESTINATION .
+    )
+endif()
 # -- Add subdirectories --------------------------------------------------------
 
 add_subdirectory(src)
@@ -383,3 +389,23 @@ install(CODE "
            )
 ")
 
+if(APPLE)
+    install(CODE "
+        EXECUTE_PROCESS(COMMAND mv
+               ${CMAKE_MADLIB_ROOT}/Current/Readme_OSX
+               ${CMAKE_MADLIB_ROOT}/Readme_OSX
+               )
+    ")
+    install(CODE "
+        EXECUTE_PROCESS(COMMAND mv
+               ${CMAKE_MADLIB_ROOT}/Current/link_madlib_folders.sh
+               ${CMAKE_MADLIB_ROOT}/link_madlib_folders.sh
+               )
+    ")
+    install(CODE "
+        EXECUTE_PROCESS(COMMAND chmod
+               a+x
+               ${CMAKE_MADLIB_ROOT}/link_madlib_folders.sh
+               )
+    ")
+endif()
diff --git a/deploy/CMakeLists.txt b/deploy/CMakeLists.txt
index e727e92..6cb8c62 100644
--- a/deploy/CMakeLists.txt
+++ b/deploy/CMakeLists.txt
@@ -129,3 +129,15 @@ foreach(PORT_COMPONENT ${PORT_COMPONENTS})
     include("${PORT_COMPONENT}")
 endforeach(PORT_COMPONENT)
 
+if(APPLE)
+    configure_file(
+        link_madlib_folders.sh
+        "${CMAKE_CURRENT_BINARY_DIR}/link_madlib_folders.sh"
+        USE_SOURCE_PERMISSIONS
+    )
+    configure_file(
+        Readme_OSX
+        "${CMAKE_CURRENT_BINARY_DIR}/Readme_OSX"
+        @ONLY
+    )
+endif()
diff --git a/deploy/Readme_OSX b/deploy/Readme_OSX
new file mode 100644
index 0000000..f430734
--- /dev/null
+++ b/deploy/Readme_OSX
@@ -0,0 +1,24 @@
+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.
+
+MADlib Package Usage for OSX
+
+This tarball is generated for using MADlib on OSX devices.
+Please run the link_madlib_folders.sh file to create links necessary for usage.
+Note that this file needs to be run from the directory that it's located in. If
+it's run from somewhere else, it will not work and that it might have unintended
+side effects like an unrelated file getting deleted.
+
+Please note that this package cannot be used in any other operation system.
diff --git a/deploy/link_madlib_folders.sh b/deploy/link_madlib_folders.sh
new file mode 100755
index 0000000..ceb78df
--- /dev/null
+++ b/deploy/link_madlib_folders.sh
@@ -0,0 +1,19 @@
+# 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.
+
+rm Current bin doc
+ln -nsf Versions/$(ls -r Versions/ | head -1) ./Current
+ln -nsf Current/bin ./bin
+ln -nsf Current/doc ./doc

[madlib] 04/04: Add JIRA numbers to the RELEASE_NOTES

Posted by ok...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit be297fe6beada0640f93317e8948834032718e32
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Thu Jan 6 15:34:12 2022 +0300

    Add JIRA numbers to the RELEASE_NOTES
---
 RELEASE_NOTES | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index 70d08d4..8db41da 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -22,9 +22,10 @@ before upgrading.
 New features:
     - DBSCAN: Fast parallel-optimized DBSCAN (MADLIB-1017, MADLIB-867)
     - MLP: Add rmsprop and Adam optimization techniques (MADLIB-1434, MADLIB-1435)
+    - Build: Add OSX tarball for release (MADLIB-1493)
 
 Improvements:
-    - Graph: Improve WCC subtx count and catalog entry frequency
+    - Graph: Improve WCC subtx count and catalog entry frequency (MADLIB-1492)
     - MLP: Set lambda value for minibatch
 
 Bug fixes:

[madlib] 01/04: Update Apache copyright date to 2022 in the NOTICE file

Posted by ok...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit 8e81bb8a48868c510fac900a3b0d080eb4d43077
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Wed Jan 5 20:36:21 2022 +0300

    Update Apache copyright date to 2022 in the NOTICE file
---
 NOTICE | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NOTICE b/NOTICE
index b59ed0f..a5a4367 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache MADlib
-Copyright 2016-2021 The Apache Software Foundation.
+Copyright 2016-2022 The Apache Software Foundation.
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

[madlib] 02/04: Update RELEASE_NOTES and DBSCAN docs

Posted by ok...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit 03e522948f0ae41d2d61ec7d0019c27153172cd7
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Mon Dec 20 17:24:07 2021 -0500

    Update RELEASE_NOTES and DBSCAN docs
---
 RELEASE_NOTES                                   | 3 ++-
 src/ports/postgres/modules/dbscan/dbscan.sql_in | 9 ++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index d993722..70d08d4 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -12,9 +12,10 @@ Current list of bugs and issues can be found at https://issues.apache.org/jira/b
 —-------------------------------------------------------------------------
 MADlib v1.19.0:
 
-Release Date: 2021-Dec-XX
+Release Date: 2022-Jan-XX
 
 NOTE: This release changes MADlib library location and updates UDF definitions.
+To ensure this change is reflected in the database, pg_ctl (for Postgres) or gpstop (for Greenplum) has to be in the PATH at the time of madpack installation.
 Views depending directly on madlib defined function(s) have to be dropped
 before upgrading.
 
diff --git a/src/ports/postgres/modules/dbscan/dbscan.sql_in b/src/ports/postgres/modules/dbscan/dbscan.sql_in
index 41a96a2..0cfac3d 100644
--- a/src/ports/postgres/modules/dbscan/dbscan.sql_in
+++ b/src/ports/postgres/modules/dbscan/dbscan.sql_in
@@ -70,7 +70,8 @@ dbscan( source_table,
         eps,
         min_samples,
         metric,
-        algorithm
+        algorithm,
+        max_segmentation_depth
       )
 </pre>
 
@@ -162,6 +163,12 @@ a relatively small eps, so it can return the first result faster; if it looks
 like there are too many small clusters, increase eps and allow it to run for longer.
 
 </ul></dd>
+
+<dt>max_segmentation_depth (optional)</dt>
+<dd>INTEGER, default: <number of segments>. The number of regions to segment
+the data. See <b>optimized</b> for usage.
+</dd>
+
 </dl>
 
 <b>Output</b>