Skip to content
Discussion options

You must be logged in to vote

Well, some hapless fumbling, and it looks like there's a bunch of stuff hanging on the CreateTableOp that wasn't getting copied to the new CreateTableOp statement with the re-ordered columns. I added a very ugly bit and now it seems to be ... ok?

    return ops.CreateTableOp(
        op.table_name,
        columns=columns,
        schema=op.schema,
        info=op.info,
        comment=op.comment,
        prefixes=op.prefixes,
        _namespace_metadata=op._namespace_metadata,
        _constraints_included=op._constraints_included,
        **op.kw
    )

Now, to tilt at the next windmill -- adding a trigger automatically for tables with certain predicates. Wheee!

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@zzzeek
Comment options

@ghost
Comment options

@zzzeek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant