Skip to content

Data frame case sensitivity is not carried over after Merge Transform is applied #145

Closed

Description

@yakshpatell

This is a very similar issue to an earlier resolved issue but this time, with a different transform: MERGE.

The merge transform does not support case sensitivity. We have multiple customers requesting this feature in our application so if you could add this support, I would greatly appreciate it.

Example:

const frame1 = new DataFrame({
columnNames: ['Name'],
caseSensitive: true
});

const frame2 = new DataFrame({
columnNames: ['name'],
caseSensitive: true
});

const frame3 = frame1.merge(frame2);
console.log('column names: ' + JSON.stringify(frame3.getColumnNames()))

/* ^ logging returns ["Name.1","name.2"] */

Activity

  1. ashleydavis commented on Jun 23, 2022

    @ashleydavis
    Member

    Thanks for your feedback.

    This issue happens because the DataFrame that is created in the merge function is case insensitive by default:

    image

    We could make it case sensitive by just adding that field:

    image

    However, there are cases where this might not be desired.

    I would suggest that we make the result case sensitive if any of the input data frames is case sensitive, like this:

    image

    This would solve your problem and hopefully not cause an issue for anyone relying on it already.

  2. yakshpatell commented on Jun 23, 2022

    @yakshpatell
    Author

    Ahh ok. This makes sense. Thank you for the neat step by step explanation!! Really appreciate it.

    This change looks good to me. When can I expect this code enhancement to be pushed ? :))

  3. ashleydavis commented on Jun 26, 2022

    @ashleydavis
    Member

    This issue is fixed in v1.9.6.

    The merge function now returns a case sensitive dataframe when any of the input dataframes is case sensitive.

    Thanks for reporting the issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions