Skip to content

BACKEND: Improve Boolean Comparison #9

@JMAR059

Description

@JMAR059

When making boolean comparisons, there are a couple of difficulties to consider from the parsed string information:

  • When is a variable actually a constant, number, or a reference to a column from a table?
  • How can you convert that string information to its actual value and data type?
  • What is the best way to do the comparison operation with a comparison character?

A initial solution was to use eval(), however this is not ideal for many reasons as it converts a string into actual code. There could be some different approaches to improving this part of the code for readability, performance, and security. One idea was to use a class to handle the different data type conversions and perform comparisons based on them.

A current not so elegant solution can be found in the evalRemove branch of the booleanNodes.py file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions