Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix renaming non DataJoint attributes using proj #982

Closed
A-Baji opened this issue Jan 18, 2022 · 0 comments · Fixed by #972
Closed

Fix renaming non DataJoint attributes using proj #982

A-Baji opened this issue Jan 18, 2022 · 0 comments · Fixed by #972
Assignees
Labels

Comments

@A-Baji
Copy link
Collaborator

A-Baji commented Jan 18, 2022

This is an issue reported by @kabilar in our internal slack.

Hi Raphael dimitri, question regarding the proj operator functionality for invalid attribute names in DataJoint version < 0.13 and > 0.13. Have also discussed with Jeroen Verswijver.
Currently performing a database migration for Princeton and working with attribute names that are of an invalid format (i.e. capitalized). In DataJoint 0.12.9, was able to use proj to rename invalid attribute names, but in DataJoint 0.13.2 the same functionality does not occur. Is this expected for DataJoint > 0.13? If not, I can file an issue on GitHub to be addressed in a future release. The current workaround is to do the migration in 0.12.9.
Thank you.
DataJoint 0.12.9

test_proj = dj.create_virtual_module('test_projection', 'test_projection')

test_proj.TableA()
*oldID
+-------+

test_proj.TableA.proj(new_id='oldID')
*new_id
+--------+
DataJoint 0.13.2
test_proj = dj.create_virtual_module('test_projection', 'test_projection')

test_proj.TableA()
*oldID
+-------+

test_proj.TableA.proj(new_id='oldID')
*oldID new_id
+-------+ +--------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment