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

New alteration to support new column #507

Closed
Seddryck opened this issue Aug 23, 2019 · 1 comment
Closed

New alteration to support new column #507

Seddryck opened this issue Aug 23, 2019 · 1 comment

Comments

@Seddryck
Copy link
Owner

Seddryck commented Aug 23, 2019

It should be possible to create a new column in a result-set based on some static values and based on values of the current row.

<alter>
   <extend identifier="[new column]">
      <script language="ncalc">[ColA] * 4 / Max([ColB], [ColC])</script>
   </extend>
</alter>

The only script language supported is NCalc at this moment.

When using an index identifier the newly created column will be available at the expected position. If the expected position is unreachable (less columns that expected), the alteration will put the new column as the latest column. If the name identifier of the newly created column is already in-use this column will be replaced.

@Seddryck
Copy link
Owner Author

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/builds/26918636/artifacts or with version 1.21.0-beta0283.

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

No branches or pull requests

1 participant