Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2409

Add INSERT support to CQL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 0.8 beta 1
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Severity:
      Normal

      Description

      There are two reasons to support INSERT:

      • It helps new users feel comfortable (everyone's first statement will be to try to INSERT something, we should make that a positive experience instead of slapping them)
      • Even though it is synonymous with update it is still useful in your code to have both to help communicate intent, similar to choosing good variable names

      The only downside is explaining how INSERT isn't a "true" insert because it doesn't error out if the row already exists – but we already have to explain that same concept for UPDATE; the cognitive load is extremely minor.

        Attachments

          Activity

            People

            • Assignee:
              xedin Pavel Yaskevich
              Reporter:
              jbellis Jonathan Ellis
              Authors:
              Pavel Yaskevich
              Reviewers:
              Eric Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: