gkunter / coquery

Coquery is a free corpus query tool for linguists, lexicographers, translators, and anybody who wishes to search and analyse a text corpus.
GNU General Public License v3.0
18 stars 4 forks source link

Functions on external columns can't be named #270

Closed gkunter closed 7 years ago

gkunter commented 7 years ago

Test case: Buckeye corpus with ELP on Word. Output column e.g. ELP.Word, and the function LENGTH(ELP.Word); any query string that matches a token in Buckeye.

Any attempt to rename the function in the Column property dialog fails:


KeyError 'func_MATCH_79b487651bc40a289cd4fd2827ca3539'

Trace 
Function column_properties() in coquery/gui/app.py, line 1054:
  Function manage() in coquery/gui/columnproperties.py, line 299:
    Function exec_() in coquery/gui/columnproperties.py, line 106:
      Function <dictcomp>() in coquery/gui/columnproperties.py, line 108:
        Function _key_dtype() in coquery/gui/columnproperties.py, line 77:

          > dtype = self.df[col].dtype
gkunter commented 7 years ago

This issue was actually caused by column substitutions that referred to columns not contained in the current data frame.