Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-21676

Ensure that state names are valid identifiers in the StateFun Java SDK

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • statefun-3.0.0
    • Stateful Functions
    • None

    Description

      While the Java SDK only access state via state name strings, other SDKs, like the Python SDK, may access state as properties on the storage instance.

      To ensure that users can properly access previous state after swapping languages for their functions, we should enforce that specified state names are valid identifiers, following the rules below:

      • Must start with either an alphabet letter [a-z] / [A-Z], or an underscore "_".
      • Characters other than the first, can be either an alphabet letter [a-z] / [A-Z], a digit [0-9], or an underscore "_".
      • Must not contain spaces.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tzulitai Tzu-Li (Gordon) Tai
            tzulitai Tzu-Li (Gordon) Tai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment