Skip to content

Typecasting Operator #869

Closed
Closed

Description

@bihaox

This operator will casting the type of one column of tuples to another type.

There will be 4 types for casting.

string
int
double
boolean

Casting Type:
string -> int, double
int, double -> string
string -> boolean
boolean -> string
Screen Shot 2020-11-06 at 3 45 43 PM

  • Need to show result type in a dropdown list.

  • Show type of current attribute after selection

Activity

  1. bihaox commented on Nov 13, 2020

    @bihaox
    ContributorAuthor

    Current, it can do type casting and show result type in a dropdown list
    Screen Shot 2020-11-13 at 3 40 34 PM

    Screen Shot 2020-11-13 at 3 38 21 PM

    But there is a problem for field index, should we keep the previous index?

    Screen Shot 2020-11-13 at 3 58 17 PM

  2. bihaox commented on Dec 4, 2020

    @bihaox
    ContributorAuthor

    After discuss with Zuozhi, we think it will be good if we can show current type when select one attribute.
    Current version we only propagate names of attributes to the front-End. After modification, I pass the data about attribute types to front-end.

    I have successfully transfer data from backend to frontend, but it seems a bit hard to display the data type.

  3. bihaox commented on Dec 4, 2020

    @bihaox
    ContributorAuthor

    Screen Shot 2020-12-04 at 3 49 41 PM

  4. bihaox commented on Dec 4, 2020

    @bihaox
    ContributorAuthor

    Screen Shot 2020-12-04 at 3 59 40 PM

  5. bihaox commented on Dec 11, 2020

    @bihaox
    ContributorAuthor

    Screen Shot 2020-12-11 at 3 12 24 PM

    Screen Shot 2020-12-11 at 3 12 34 PM

    The new feature allow showing TypeCasting Information when using TypeCasting operator.
    The whole task both change the frontend and backend, to make the schema propagation with the type information.

    The PR is opened

  6. added a commit that references this issue on Jan 9, 2021
  7. added a commit that references this issue on Jun 22, 2026
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