Netezza:在创建外部表时,列名被欺骗了相同的数据类型,需要知道原因

时间:2015-07-23 17:13:17

标签: netezza

我在netezza中创建外部表。在我创建表格之后,我可以看到所有列都被欺骗了4次。它看起来很奇怪,但它正在发生。

示例:

    CREATE external TABLE TEST '/nzscratch/kapish/69314.082.000/TV_Daily_Audit_Results.txt'
            USING(delim '|' Format 'TEXT'
           ) AS
    SELECT
        b.card_acceptor_id AS MID,
        a.div_no AS CARD_DIV_NO,
        c.div_name AS ACCT_TYPE,
        a.acct_id,
        a.tran_text,
        substr(a.tran_text, 24, 13) AS MERCHANT_CITY,
        substr(a.tran_text, 37, 2) AS MERCHANT_STATE,
        b.MERCHANT_ZIP_CD,
        a.post_date,
        a.tran_cd,
        a.gl_origin_cd,
        a.tran_amt,
        a.merchant_cat_cd
    FROM
        pstdtr_pstd_trans a,
        pstdrt_rtain_rtns b,
        divdef_div_def_v c
    WHERE
        a.acct_id = b.acct_id
        AND a.reference_no = b.reference_no
        AND a.tran_date = b.tran_date
        AND a.div_no = c.div_no
        AND a.div_no IN (232, 234, 235, 237, 273, 275, 276, 278)
        AND post_date >= (current_date - 2)
        AND gl_origin_cd NOT IN (232, 234, 235, 237, 273, 275, 276, 278)

    SYSTEM.ADMIN(ADMIN)=> \d TEST

      External Table "TV_DAILY_AUDIT_RESULTS"
    Attribute    |         Type          | Modifier
-----------------+-----------------------+----------

MID             | CHARACTER(15)         |

MID             | CHARACTER(15)         |

MID             | CHARACTER(15)         |

MID             | CHARACTER(15)         |

CARD_DIV_NO     | SMALLINT              | NOT NULL

CARD_DIV_NO     | SMALLINT              | NOT NULL

CARD_DIV_NO     | SMALLINT              | NOT NULL

CARD_DIV_NO     | SMALLINT              | NOT NULL

ACCT_TYPE       | CHARACTER(30)         |

..

..

..

MERCHANT_CAT_CD | INTEGER               |

MERCHANT_CAT_CD | INTEGER               |

MERCHANT_CAT_CD | INTEGER               |

MERCHANT_CAT_CD | INTEGER               |

DataObject - 'C:\WinSQL Jobs\Daily TV Audit\TV_Daily_Audit_Results.txt'

DataObject - 'C:\WinSQL Jobs\Daily TV Audit\TV_Daily_Audit_Results.txt'

DataObject - 'C:\WinSQL Jobs\Daily TV Audit\TV_Daily_Audit_Results.txt'

DataObject - 'C:\WinSQL Jobs\Daily TV Audit\TV_Daily_Audit_Results.txt'

adjustdistzeroint   -

bool style          - 1_0
.

.

decimaldelim        -

disablenfc          -

includeheader       -

现在确定它是什么原因。所以如果有人可以帮助我,那就太好了。

1 个答案:

答案 0 :(得分:0)

这似乎与this question中识别的错误/问题相同,后续修复/发布已解决此问题。您应该联系支持人员以获取修复程序。

尽管目录中有奇怪的报告,但表格应该正常运作。