-
Notifications
You must be signed in to change notification settings - Fork 26
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
[APIC-313] retain specific sql types in civis_file_to_table #402
Merged
mheilman
merged 2 commits into
civisanalytics:master
from
mheilman:specific_dtype_in_civis_file_to_table
Aug 28, 2020
Merged
[APIC-313] retain specific sql types in civis_file_to_table #402
mheilman
merged 2 commits into
civisanalytics:master
from
mheilman:specific_dtype_in_civis_file_to_table
Aug 28, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…umns specified in civis_file_to_table
mheilman
commented
Aug 28, 2020
mheilman
commented
Aug 28, 2020
jkulzick
suggested changes
Aug 28, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mheilman looks like the build errored
🤦 sorry about that. Fixed now |
mheilman
commented
Aug 28, 2020
jkulzick
approved these changes
Aug 28, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
byndcivilization
added a commit
that referenced
this pull request
Sep 10, 2020
…city * master: [APIC-314] Refactored File Cleaning Logic (#405) [APIC-307] fix a workflows usage example in docs/source/client.rst (#409) add some missing PR numbers to the changelog (#408) Update the API spec at `civis/tests/civis_api_spec.json` so that new endpoints are included (e.g., `/exports/files/csv`) (#407) Updated list of base API resources to include `aliases`, `git_repos`, `json_values`, `services`, and `storage_hosts` so that they show up in the sphinx docs (#406) [APIC-284] remove python 3.5 support since it is reaching EOL (#404) [APIC-305] Require sql_type for every column when table_columns is provided (CHANGELOG) (#403) [APIC-313] retain specific sql types in civis_file_to_table (#402)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the
civis.io.civis_file_to_table
function, the Python API client appears to tell platform to change SQL types likeVARCHAR(1)
in thetable_columns
argument to more generic values likeVARCHAR(1024)
when there are multiple files. The behavior seems reasonable when data types are automatically inferred (i.e., whenneed_table_columns
is true), as noted in the code comment, but if the user has specified a dtype with specific length likeVARCHAR(1)
, the import should just use that.