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

Profiling issue when running on date fields with leading zero. #14

Open
chenxuanrong opened this issue Oct 19, 2023 · 0 comments
Open

Comments

@chenxuanrong
Copy link
Owner

Describe the bug
When a cell contains leading zero date e.g. '0001-01-01' , profiler failed with

Exception: Profiler Exception: InterfaceError('(snowflake.connector.errors.InterfaceError) 252005: Failed to convert current row, cause: year 0 is out of 
range

To Reproduce
Steps to reproduce the behavior:

  1. create a table
-- models/foo.sql
select '0000-12-30'::date as date_with_zeros
  1. Run profiler.

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. macOS, ubuntu, Windows]
  • Python Version [e.g. 3.7.5, 3.9.10]
  • Version [e.g. v0.1.3.14]

Additional context

Mentioned in snowflake-python-connector.
snowflakedb/snowflake-connector-python#1652

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

1 participant