Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
This repository was archived by the owner on May 17, 2024. It is now read-only.

TypeError: [TableDiffer] Attribute 'bisection_factor' expected value of type int. Instead got '32' #175

@davesgonechina

Description

@davesgonechina

Works without --bisection-factor but when I try to use it e.g. data-diff db1 table1 db2 table2 --stats --bisection-factor=32 I get this error:

Traceback (most recent call last):
  File "/Users/dlyons/.pyenv/versions/3.9.4/bin/data-diff", line 8, in <module>
    sys.exit(main())
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/data_diff/__main__.py", line 87, in main
    return _main(**kw)
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/data_diff/__main__.py", line 177, in _main
    differ = TableDiffer(

  File "<string>", line 9, in __init__
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/runtype/dataclass.py", line 227, in __post_init__
    _post_init(self, config=config, should_cast=check_types == 'cast', sampler=sampler)
  File "/Users/dlyons/.pyenv/versions/3.9.4/lib/python3.9/site-packages/runtype/dataclass.py", line 119, in _post_init
    raise TypeError(msg)
TypeError: [TableDiffer] Attribute 'bisection_factor' expected value of type int. Instead got '32'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions