Skip to content

select column meta for table map event #32

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

Open
siddontang opened this issue Jan 19, 2016 · 4 comments
Open

select column meta for table map event #32

siddontang opened this issue Jan 19, 2016 · 4 comments

Comments

@siddontang
Copy link
Collaborator

I think this can improve #28.

@karmakaze

@karmakaze
Copy link
Contributor

Yes it does. However have to be mindful that a schema change may mean that the column meta is newer than the point in time of the stream that is being processed.

@siddontang
Copy link
Collaborator Author

We can check table id too, if table id exists, we can guarantee that the schema is not changed. if not, we may degrade to old use.

@gdey
Copy link
Contributor

gdey commented Jan 22, 2016

Is there a way to get the table id from the information_schema? I'm running into this issue as well, and want to know if the map_table_event corresponds to current table schema.

@siddontang
Copy link
Collaborator Author

Hi @gdey
You can find it in INFORMATION_SCHEMA.INNODB_SYS_TABLES, but as you see, this may be only for innodb. 😭

glycerine pushed a commit to glycerine/go-mysql that referenced this issue Feb 7, 2017
Map mysql fields to elasticsearch arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants