madlib-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orhankislal <...@git.apache.org>
Subject [GitHub] madlib pull request #197: Fix madlib version parsing for upgrade
Date Mon, 13 Nov 2017 22:39:12 GMT
Github user orhankislal commented on a diff in the pull request:

    https://github.com/apache/madlib/pull/197#discussion_r150687658
  
    --- Diff: src/madpack/upgrade_util.py ---
    @@ -142,11 +142,11 @@ def _load(self):
             """
     
             # _mad_dbrev = 1.9.1
    -        if self._mad_dbrev.split('.') < '1.10.0'.split('.'):
    +        if map(int,self._mad_dbrev.split('.')) < map(int,'1.10.0'.split('.')):
    --- End diff --
    
    I was thinking of the first option as you suggested. I am not sure about your second suggestion.
I tried all 4 of the combinations and couldn't get it working.


---

Mime
View raw message