phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twdsilva <...@git.apache.org>
Subject [GitHub] phoenix pull request: PHOENIX-514 Support functional indexes
Date Wed, 28 Jan 2015 19:56:02 GMT
Github user twdsilva commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/34#discussion_r23717459
  
    --- Diff: phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ImmutableIndexIT.java
---
    @@ -50,23 +52,27 @@ private static void populateTestTable() throws SQLException {
             Connection conn = DriverManager.getConnection(getUrl(), props);
             try {
                 String upsert = "UPSERT INTO " + INDEX_DATA_SCHEMA + QueryConstants.NAME_SEPARATOR
+ INDEX_DATA_TABLE
    -                    + " VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
    +                    + " VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
                 PreparedStatement stmt = conn.prepareStatement(upsert);
                 stmt.setString(1, "varchar1");
                 stmt.setString(2, "char1");
                 stmt.setInt(3, 1);
                 stmt.setLong(4, 1L);
                 stmt.setBigDecimal(5, new BigDecimal(1.0));
    -            stmt.setString(6, "varchar_a");
    --- End diff --
    
    I added 3 date columns to INDEX_DATA_TABLE and MUTABLE_INDEX_DATA_TABLE, so I just added
default values for these columns.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message