Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: awslabs/aws-lambda-redshift-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: tleach/aws-lambda-redshift-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Sep 3, 2015

  1. Ensure the "format" keyword precedes the data format

    It seems that Redshift throws a syntax error if you provide AVRO as the data format in a COPY command if not preceded by the FORMAT keyword.
    
    This fails:
    
    copy customer
    from 's3://mybucket/my.manifest'
    credentials 'aws_access_key_id=<access-key-id>;aws_secret_access_key=<secret-access-key>'
    manifest
    avro 'auto';
    
    This works:
    
    copy customer
    from 's3://mybucket/my.manifest'
    credentials 'aws_access_key_id=<access-key-id>;aws_secret_access_key=<secret-access-key>'
    manifest
    format avro 'auto';
    
    Note that this problem does not seem to affect CSV and JSON formats which can be specified without the "FORMAT" keyword.
    
    This commit simply prepends the format specifier with the "FORMAT" keyword to ensure all formats can be loaded.
    Tom Leach committed Sep 3, 2015
    Configuration menu
    Copy the full SHA
    334557a View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2015

  1. Merge pull request #1 from tleach/tl-avro-docs

    Update README to describe existing support for AVRO
    tleach committed Sep 4, 2015
    Configuration menu
    Copy the full SHA
    a8a1b50 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from tleach/tl-avro-format

    Ensure the "format" keyword precedes the data format
    tleach committed Sep 4, 2015
    Configuration menu
    Copy the full SHA
    a31e371 View commit details
    Browse the repository at this point in the history
Loading