Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changefeedccl: Rename and remove CDC functions #96295

Merged
merged 1 commit into from
Feb 15, 2023

Commits on Feb 14, 2023

  1. changefeedccl: Rename and remove CDC functions

    This PR renames and removes CDC specific functions,
    while maintaining backward compatability.
    
    * `cdc_is_delete()` function removed.  It is replaced
      with `event_op()` function which returns a string describing
      the type of event.  If the changefeed is running with `diff`
      option, then this function returns `insert`, `update`, or
      `delete`.  If changefeed is running without the `diff` option,
      we can't tell an update from insert, so this function returns
      `upsert` or `delete`.
    * `cdc_mvcc_timestamp()` function removed.  This information
      can be accessed via cockroach standard system column
      `crdb_internal_mvcc_timestamp`.  The same timestamp column
      is available in the previous row state
      `(cdc_prev).crdb_internal_mvcc_timestamp`
    * `cdc_updated_timestamp()` function renamed as
      `event_schema_timestamp()`
    
    Fixes cockroachdb#92482
    Epic: CRDB-17161
    
    Release note (enterprise change): Deprecate and replace some of the
    changefeed specific functions made available in preview mode in 22.2
    release.   While these functions are deprecated, old changefeed
    transformations should continue to function properly.
    Customers are encouraged to closely monitor their changefeeds
    created during upgrade.  While effort was made to maintain backward
    compatability, the updated changefeed transformation may produce
    slightly different output (different column names, etc).
    Yevgeniy Miretskiy committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    5265347 View commit details
    Browse the repository at this point in the history